-
Notifications
You must be signed in to change notification settings - Fork 1
/
SceneryObject.h
51 lines (43 loc) · 1022 Bytes
/
SceneryObject.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
/**
* Class SceneryObject - Header File
*
* Represents a scenery object like trees, blocks,
* houses and other not movable things
*
*
* @author Dennis Schneider <sinned.schneider@gmail.com>
*
* @status final
*/
#ifndef SCENERYOBJECT_H_
#define SCENERYOBJECT_H_
#include <Ogre.h>
using namespace Ogre;
class SceneryObject {
public:
SceneryObject(SceneManager* Pointer, String objectName, int objectType, int positionX, int positionY, int positionZ, float scaleX, float scaleY, float scaleZ, int materialType = 0);
virtual ~SceneryObject();
void addToScene();
void removeFromScene();
Vector3 getPosition();
void setInvisible();
void setVisible();
int getObjectType();
AxisAlignedBox getAABB();
private:
SceneManager* mSceneManagerPointer;
SceneNode* mNodePointer;
Entity* mEntityPointer;
String mMeshType;
String mName;
String mMaterialName;
int mObjectType;
int mX;
int mY;
int mZ;
float mScaleX;
float mScaleY;
float mScaleZ;
AxisAlignedBox mAABB;
};
#endif /* SCENERYOBJECT_H_ */