the variables and methods that a GameEntities contains put in this file More...
#include <GameEntity.h>
Public Member Functions | |
GameEntity (Environment *_environment, Models *_model, ngl::Vec3 _pos, std::string _type, bool _taken) | |
ctor | |
~GameEntity () | |
dtor | |
void | setPos (ngl::Vec3 _pos) |
set the Position of the coin | |
ngl::Vec3 | getPos () |
get the game entity position | |
void | draw (ngl::TransformStack *_tx, ngl::Camera *_cam) |
draw the scene | |
void | update () |
method to update | |
bool | getTakenStatus () |
get the taken status | |
void | setTakenStatus () |
set the agent position | |
std::string | getType () |
get the game entity type | |
Protected Attributes | |
Environment * | m_parent |
pointer to the parent | |
Models * | m_model |
pointer to the model | |
ngl::Vec3 | m_pos |
variable to the game enitity position | |
std::string | m_type |
variable to the type of the game entity | |
bool | m_taken |
bool to note if its taken | |
float | m_rot |
variable to store the rotation |
the variables and methods that a GameEntities contains put in this file
Definition at line 18 of file GameEntity.h.
GameEntity::GameEntity | ( | Environment * | _environment, | |
Models * | _model, | |||
ngl::Vec3 | _pos, | |||
std::string | _type, | |||
bool | _taken | |||
) |
ctor
[in] | the | parent Environment |
[in] | the | model variable for meshes |
[in] | the | initial position from which the bullet is shot |
[in] | the | type of the agent |
[in] | the | bool to check if it is taken by the agent |
GameEntity::~GameEntity | ( | ) |
dtor
void GameEntity::draw | ( | ngl::TransformStack * | _tx, | |
ngl::Camera * | _cam | |||
) |
draw the scene
[in] | _tx | the transform stack of the current scene |
[in] | _cam | the current camera |
ngl::Vec3 GameEntity::getPos | ( | ) | [inline] |
get the game entity position
Definition at line 42 of file GameEntity.h.
References m_pos.
00042 {return m_pos;}
bool GameEntity::getTakenStatus | ( | ) | [inline] |
get the taken status
Definition at line 56 of file GameEntity.h.
References m_taken.
00056 {return m_taken;}
std::string GameEntity::getType | ( | ) | [inline] |
get the game entity type
Definition at line 64 of file GameEntity.h.
References m_type.
00064 {return m_type;}
void GameEntity::setPos | ( | ngl::Vec3 | _pos | ) | [inline] |
set the Position of the coin
i] | _pos the new position |
Definition at line 38 of file GameEntity.h.
References m_pos.
00038 {m_pos = _pos;}
void GameEntity::setTakenStatus | ( | ) | [inline] |
set the agent position
Definition at line 60 of file GameEntity.h.
References m_taken.
00060 {m_taken = true;}
void GameEntity::update | ( | ) |
method to update
Models* GameEntity::m_model [protected] |
pointer to the model
Definition at line 74 of file GameEntity.h.
Environment* GameEntity::m_parent [protected] |
pointer to the parent
Definition at line 70 of file GameEntity.h.
ngl::Vec3 GameEntity::m_pos [protected] |
variable to the game enitity position
Definition at line 78 of file GameEntity.h.
float GameEntity::m_rot [protected] |
variable to store the rotation
Definition at line 90 of file GameEntity.h.
bool GameEntity::m_taken [protected] |
bool to note if its taken
Definition at line 86 of file GameEntity.h.
std::string GameEntity::m_type [protected] |
variable to the type of the game entity
Definition at line 82 of file GameEntity.h.