AIPlayer Class Reference

#include <aiPlayer.h>

Inheritance diagram for AIPlayer:

Inheritance graph
[legend]
List of all members.

Public Types

 ModeStop
 ModeMove
 ModeStuck
enum  MoveState {
  ModeStop,
  ModeMove,
  ModeStuck
}

Public Member Functions

 DECLARE_CONOBJECT (AIPlayer)
 AIPlayer ()
 ~AIPlayer ()
virtual bool getAIMove (Move *move)
void setAimObject (GameBase *targetObject)
void setAimObject (GameBase *targetObject, Point3F offset)
GameBasegetAimObject () const
void setAimLocation (const Point3F &location)
Point3F getAimLocation () const
void clearAim ()
void setMoveSpeed (const F32 speed)
F32 getMoveSpeed () const
void setMoveTolerance (const F32 tolerance)
F32 getMoveTolerance () const
void setMoveDestination (const Point3F &location, bool slowdown)
Point3F getMoveDestination () const
void stopMove ()

Private Types

typedef Player Parent

Private Member Functions

void throwCallback (const char *name)

Private Attributes

MoveState mMoveState
F32 mMoveSpeed
F32 mMoveTolerance
Point3F mMoveDestination
Point3F mLastLocation
bool mMoveSlowdown
SimObjectPtr< GameBasemAimObject
bool mAimLocationSet
Point3F mAimLocation
bool mTargetInLOS
Point3F mAimOffset

Member Typedef Documentation

typedef Player AIPlayer::Parent [private]

Reimplemented from Player.


Member Enumeration Documentation

Enumerator:
ModeStop 
ModeMove 
ModeStuck 

Reimplemented from Player.


Constructor & Destructor Documentation

AIPlayer::AIPlayer (  ) 

AIPlayer::~AIPlayer (  ) 


Member Function Documentation

void AIPlayer::throwCallback ( const char *  name  )  [private]

AIPlayer::DECLARE_CONOBJECT ( AIPlayer   ) 

virtual bool AIPlayer::getAIMove ( Move move  )  [virtual]

Reimplemented from Player.

void AIPlayer::setAimObject ( GameBase targetObject  ) 

void AIPlayer::setAimObject ( GameBase targetObject,
Point3F  offset 
)

GameBase* AIPlayer::getAimObject (  )  const [inline]

void AIPlayer::setAimLocation ( const Point3F location  ) 

Point3F AIPlayer::getAimLocation (  )  const [inline]

void AIPlayer::clearAim (  ) 

void AIPlayer::setMoveSpeed ( const F32  speed  ) 

F32 AIPlayer::getMoveSpeed (  )  const [inline]

void AIPlayer::setMoveTolerance ( const F32  tolerance  ) 

F32 AIPlayer::getMoveTolerance (  )  const [inline]

void AIPlayer::setMoveDestination ( const Point3F location,
bool  slowdown 
)

Point3F AIPlayer::getMoveDestination (  )  const [inline]

void AIPlayer::stopMove (  ) 


Member Data Documentation