AIClient

consoledoc.h

Simulated client driven by AI commands.

More...

Callbacks

void
onConnect(string idString)

Public Functions

Point3F

ai.getAimLocation();

Point3F

ai.getLocation();

Point3F

ai.getMoveDestination();

int

ai.getTargetObject();

void

ai.missionCycleCleanup();

void
move()

ai.move();

void

ai.moveForward();

void
setAimLocation(Point3F v)

ai.setAimLocation( x y z );

void
setMoveDestination(Point3F v)

ai.setMoveDestination( x y z );

void
setMoveSpeed(float speed)

ai.setMoveSpeed( float );

void
setTargetObject(string objName)

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.

Callbacks

onConnect(string idString)

Public Functions

getAimLocation()

ai.getAimLocation();

getLocation()

ai.getLocation();

getMoveDestination()

ai.getMoveDestination();

getTargetObject()

ai.getTargetObject();

missionCycleCleanup()

ai.missionCycleCleanup();

move()

ai.move();

moveForward()

ai.moveForward();

setAimLocation(Point3F v)

ai.setAimLocation( x y z );

setMoveDestination(Point3F v)

ai.setMoveDestination( x y z );

setMoveSpeed(float speed)

ai.setMoveSpeed( float );

setTargetObject(string objName)

ai.setTargetObject( obj );

stop()

ai.stop();