forked from luke-c-sargent/ogre_3rd_person_ninjas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLevel.h
executable file
·57 lines (41 loc) · 1.07 KB
/
Level.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#pragma once
#include <OgreRoot.h>
#include <vector>
#include <stdio.h>
#include <btBulletDynamicsCommon.h>
#include <GameObject.h>
#include <Tile.h>
//#include "LevelTemplate"
using std::vector;
using std::cout;
//class Tile;
//class LevelTemplate;
class Level:public GameObject{
//static class variables
btCompoundShape* tileBodies;//actual tiles
//Ogre::SceneManager* smp;
//Ogre::SceneNode * levelNode;
Tile *tileset;
Ogre::Vector3 start;
//LevelTemplate* levelTemplate;
public:
void proceduralLevelGen(int nRooms);
void generateRoom(int xi,int yi, int tilex=0, int tiley=0);
void printLevel();
Level();
Level(Ogre::SceneManager* smptr);
~Level();
void testLevelGen();
short getTile(int xi, int yi, int zi=0);
void setTile(short val, int xi, int yi, int zi=0);
Ogre::Vector3 getStart();
void constructLevel();
int generateLevel(int xi=1, int yi=1, int zi=1);
//Added for Monster code
int getTileMapSize();
int num_monsters;
int num_monsters_left;
int x,y,z;
//instance variables
vector<short> tile_map;//3d tile index
};