torque Torque Game Engine Documentation
CVS Revision Label 1.3.x

AIPlayer Class Reference

#include <aiPlayer.h>

Inheritance diagram for AIPlayer:

Player ShapeBase GameBase SceneObject NetObject Container::Link SimObject ConsoleObject

Public Types

enum  MoveState {
  ModeStop,
  ModeMove,
  ModeStuck
}

Public Member Functions

 DECLARE_CONOBJECT (AIPlayer)
 AIPlayer ()
 ~AIPlayer ()
virtual bool getAIMove (Move *move)
void setAimObject (GameBase *targetObject)
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

Member Typedef Documentation

typedef Player AIPlayer::Parent [private]
 

Reimplemented from Player.


Member Enumeration Documentation

enum AIPlayer::MoveState
 

Enumeration values:
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  ) 
 

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  ) 
 


Field Documentation

MoveState AIPlayer::mMoveState [private]
 

F32 AIPlayer::mMoveSpeed [private]
 

F32 AIPlayer::mMoveTolerance [private]
 

Point3F AIPlayer::mMoveDestination [private]
 

Point3F AIPlayer::mLastLocation [private]
 

bool AIPlayer::mMoveSlowdown [private]
 

SimObjectPtr<GameBase> AIPlayer::mAimObject [private]
 

bool AIPlayer::mAimLocationSet [private]
 

Point3F AIPlayer::mAimLocation [private]
 

bool AIPlayer::mTargetInLOS [private]
 




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen