Public Member Functions | |
Player (Object *object, World *world) | |
ctor | |
virtual void | update (btScalar dt) |
Update the position of the player. | |
virtual bool | event (const irr::SEvent &e) |
Set movement direction based on key event. |
This class is meant for a special kind of character : the player. NPC will use directly the Character class and be managed by the AI.
void Player::update | ( | btScalar | dt | ) | [virtual] |
Update the position of the player.
This function relies of Character for all the updating but alos changes the position of the audio listener.
Reimplemented from Character.
References Game::getAudioManager(), Object::getCenterOfMassPosition(), Game::instance(), and Character::update().