orxonox::PongAI Class Reference

#include <src/orxonox/objects/controllers/PongAI.h>

Inheritance diagram for orxonox::PongAI:

orxonox::Controller orxonox::Tickable orxonox::BaseObject orxonox::OrxonoxClass orxonox::OrxonoxClass

List of all members.

Public Member Functions

 PongAI (BaseObject *creator)
void setConfigValues ()
 Function to collect the SetConfigValue-macro calls.
void setPongBall (PongBall *ball)
virtual void tick (float dt)
 Gets called every frame.
virtual ~PongAI ()

Protected Member Functions

void calculateBallEndPosition ()
void calculateRandomOffset ()
void delayedMove ()
void move (char direction, bool bUseDelay)

Protected Attributes

PongBallball_
Vector2 ballDirection_
float ballEndPosition_
bool bOscillationAvoidanceActive_
char movement_
char oldMove_
float randomOffset_
std::list< std::pair< Timer
< PongAI > *, char > > 
reactionTimers_
float relHysteresisOffset_
float strength_


Constructor & Destructor Documentation

orxonox::PongAI::PongAI ( BaseObject creator  ) 

orxonox::PongAI::~PongAI (  )  [virtual]

References reactionTimers_.


Member Function Documentation

void orxonox::PongAI::calculateBallEndPosition (  )  [protected]

void orxonox::PongAI::calculateRandomOffset (  )  [protected]

void orxonox::PongAI::delayedMove (  )  [protected]

References movement_, and reactionTimers_.

Referenced by move().

void orxonox::PongAI::move ( char  direction,
bool  bUseDelay 
) [protected]

void orxonox::PongAI::setConfigValues (  ) 

Function to collect the SetConfigValue-macro calls.

Reimplemented from orxonox::OrxonoxClass.

References SetConfigValue, and strength_.

Referenced by PongAI().

void orxonox::PongAI::setPongBall ( PongBall ball  )  [inline]

void orxonox::PongAI::tick ( float  dt  )  [virtual]


Member Data Documentation

Vector2 orxonox::PongAI::ballDirection_ [protected]

Referenced by PongAI(), and tick().

Referenced by PongAI(), and tick().

char orxonox::PongAI::movement_ [protected]

Referenced by delayedMove(), move(), PongAI(), and tick().

char orxonox::PongAI::oldMove_ [protected]

Referenced by PongAI(), and tick().

float orxonox::PongAI::randomOffset_ [protected]

Referenced by calculateRandomOffset(), PongAI(), and tick().

std::list<std::pair<Timer<PongAI>*, char> > orxonox::PongAI::reactionTimers_ [protected]

Referenced by delayedMove(), move(), and ~PongAI().

Referenced by PongAI(), and tick().

float orxonox::PongAI::strength_ [protected]


The documentation for this class was generated from the following files:

Generated on Tue Jul 28 16:22:56 2009 for Orxonox by  doxygen 1.5.6