Planet
navihomeaboutscreenshotsdownloaddevelopmentforum
Orxonox: orxonox::DroneController Class Reference

orxonox::DroneController Class Reference

Controller for the Drone of the PPS tutorial. More...

#include <controllers/DroneController.h>

Inheritance diagram for orxonox::DroneController:
orxonox::ArtificialController orxonox::Tickable orxonox::FormationController orxonox::OrxonoxClass orxonox::Controller orxonox::BaseObject orxonox::OrxonoxClass

List of all members.

Public Member Functions

 DroneController (BaseObject *creator)
virtual ~DroneController ()
DronegetDrone () const
PawngetOwner () const
void setDrone (Drone *drone)
void setOwner (Pawn *owner)
virtual void tick (float dt)
 The controlling happens here. This method defines what the controller has to do each tick.

Protected Member Functions

virtual void action ()
bool friendlyFire ()
void ownerDied ()

Protected Attributes

bool isShooting_

Private Attributes

Timer actionTimer_
Dronedrone_
WeakPtr< Pawnowner_

Static Private Attributes

static const float ACTION_INTERVAL = 1.0f

Detailed Description

Controller for the Drone of the PPS tutorial.

Author:
Oli Scheuss

Constructor & Destructor Documentation

orxonox::DroneController::DroneController ( BaseObject creator  ) 
orxonox::DroneController::~DroneController (  )  [virtual]

Member Function Documentation

void orxonox::DroneController::action (  )  [protected, virtual]
bool orxonox::DroneController::friendlyFire (  )  [protected]
Drone* orxonox::DroneController::getDrone (  )  const [inline]
Pawn* orxonox::DroneController::getOwner (  )  const [inline]
void orxonox::DroneController::ownerDied (  )  [protected]
void orxonox::DroneController::setDrone ( Drone drone  ) 
void orxonox::DroneController::setOwner ( Pawn owner  ) 
void orxonox::DroneController::tick ( float  dt  )  [virtual]

The controlling happens here. This method defines what the controller has to do each tick.

The controlling happens here.

This method defines what the controller has to do each tick.

Parameters:
dt The duration of the tick.

Reimplemented from orxonox::Tickable.


Member Data Documentation

const float orxonox::DroneController::ACTION_INTERVAL = 1.0f [static, private]

The documentation for this class was generated from the following files:
Generated on Sat May 18 06:44:49 2013 for Orxonox by  doxygen 1.6.3