Castle Battle  1.0
target.h
Go to the documentation of this file.
1 #ifndef TARGET_H
2 #define TARGET_H
3 #include<irrlicht.h>
4 #include "physics.h"
5 using namespace irr;
7 class Target{
8  private:
10  scene::ISceneManager* smgr;
14  scene::IMeshSceneNode* irrTarget;
16  btRigidBody* btTarget;
18  core::vector3df position;
19  public:
28  Target(core::vector3df position, scene::ISceneManager* smgr, video::IVideoDriver* driver, Physics* physics);
30  scene::IMeshSceneNode* getIrrNode();
31 };
32 #endif
Target represent the treasure of the castle.
Definition: target.h:7
scene::IMeshSceneNode * irrTarget
Irrlicht scene node.
Definition: target.h:14
core::vector3df position
Position of the target.
Definition: target.h:18
Physics class will handle all things related to collisions, creating Bullet physics objects and the p...
Definition: physics.h:12
Physics * physics
Physics instance.
Definition: target.h:12
btRigidBody * btTarget
Bullet btRigiBody reference.
Definition: target.h:16
scene::ISceneManager * smgr
Irrlicht scenemanger.
Definition: target.h:10