#include <src/orxonox/objects/controllers/Controller.h>
Public Member Functions | |
virtual void | changedControllableEntity () |
Controller (BaseObject *creator) | |
ControllableEntity * | getControllableEntity () const |
PlayerInfo * | getPlayer () const |
void | setControllableEntity (ControllableEntity *entity) |
void | setPlayer (PlayerInfo *player) |
virtual | ~Controller () |
Protected Attributes | |
ControllableEntity * | controllableEntity_ |
PlayerInfo * | player_ |
orxonox::Controller::Controller | ( | BaseObject * | creator | ) |
References controllableEntity_, player_, and RegisterObject.
orxonox::Controller::~Controller | ( | ) | [virtual] |
virtual void orxonox::Controller::changedControllableEntity | ( | ) | [inline, virtual] |
ControllableEntity* orxonox::Controller::getControllableEntity | ( | ) | const [inline] |
Referenced by orxonox::ArtificialController::aimAtTarget(), orxonox::HumanController::getLocalControllerEntityAsPawn(), orxonox::ArtificialController::isCloseAtTarget(), orxonox::ArtificialController::isLookingAtTarget(), orxonox::ArtificialController::moveToPosition(), orxonox::WaypointPatrolController::searchEnemy(), orxonox::ArtificialController::searchNewTarget(), orxonox::WaypointPatrolController::tick(), orxonox::WaypointController::tick(), orxonox::PongAI::tick(), and orxonox::AIController::tick().
PlayerInfo* orxonox::Controller::getPlayer | ( | ) | const [inline] |
void orxonox::Controller::setControllableEntity | ( | ControllableEntity * | entity | ) | [inline] |
void orxonox::Controller::setPlayer | ( | PlayerInfo * | player | ) | [inline] |
Referenced by orxonox::PlayerInfo::createController().
Referenced by orxonox::HumanController::addBots(), orxonox::HumanController::boost(), Controller(), orxonox::HumanController::dropItems(), orxonox::HumanController::fire(), orxonox::HumanController::greet(), orxonox::HumanController::killBots(), orxonox::HumanController::mouseLook(), orxonox::HumanController::moveFrontBack(), orxonox::HumanController::moveRightLeft(), orxonox::HumanController::moveUpDown(), orxonox::HumanController::reload(), orxonox::HumanController::rotatePitch(), orxonox::HumanController::rotateRoll(), orxonox::HumanController::rotateYaw(), orxonox::HumanController::suicide(), orxonox::HumanController::switchCamera(), and orxonox::HumanController::useItem().
PlayerInfo* orxonox::Controller::player_ [protected] |
Referenced by Controller(), and orxonox::HumanController::suicide().