|
AIClient Class Reference
[AI, Networking]
Simulated client driven by AI commands. More...
Public Attributes | |
string | getAimLocation |
ai.getAimLocation(); | |
string | getLocation |
ai.getLocation(); | |
string | getMoveDestination |
ai.getMoveDestination(); | |
int | getTargetObject |
ai.getTargetObject(); | |
void | missionCycleCleanup |
ai.missionCycleCleanup(); | |
void | move |
ai.move(); | |
void | moveForward |
ai.moveForward(); | |
void | setAimLocation |
ai.setAimLocation( x y z ); | |
void | setMoveDestination |
ai.setMoveDestination( x y z ); | |
void | setMoveSpeed |
ai.setMoveSpeed( float ); | |
void | setTargetObject |
ai.setTargetObject( obj ); | |
void | stop |
ai.stop(); |
Detailed Description
Simulated client driven by AI commands.
This object is derived from the AIConnection class. It introduces its own Player object to solidify the purpose of this class: Simulated client connecting as a player
To get more specific, if you want a strong alternative to AIPlayer (and wish to make use of the AIConnection structure), consider AIClient. AIClient inherits from AIConnection, contains quite a bit of functionality you will find in AIPlayer, and has its own Player object.
- Note:
- This is a legacy class, which you are discouraged from using as it will most likely be deprecated in a future version. For now it has been left in for backwards compatibility with TGE and the old RTS Kit. Use AIPlayer instead.
- See also:
- AIPlayer, AIConnection
Member Data Documentation
string AIClient::getAimLocation |
ai.getAimLocation();
string AIClient::getLocation |
ai.getLocation();
string AIClient::getMoveDestination |
ai.getMoveDestination();
ai.getTargetObject();
ai.missionCycleCleanup();
void AIClient::move |
ai.move();
ai.moveForward();
ai.setAimLocation( x y z );
ai.setMoveDestination( x y z );
ai.setMoveSpeed( float );
ai.setTargetObject( obj );
void AIClient::stop |
ai.stop();