com.springrts.ai.command
Class SendUnitsAICommand
java.lang.Object
Structure
com.springrts.ai.AICommand
com.springrts.ai.command.SendUnitsAICommand
public final class SendUnitsAICommand
- extends AICommand
Give units specified by to team .
represents how many actually were transferred.
Make sure this always matches the size of you passed in.
If it does not, then some unitId's were filtered out.
- does not check for alliance with
- AI's should check each unit if it is still under control of their
team after the transaction via UnitTaken() and UnitGiven(), since
LuaRules might block part of it
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOPIC
public static final int TOPIC
- See Also:
- Constant Field Values
unitIds
public int[] unitIds
numUnitIds
public int numUnitIds
receivingTeam
public int receivingTeam
ret_sentUnits
public int ret_sentUnits
SendUnitsAICommand
public SendUnitsAICommand()
SendUnitsAICommand
public SendUnitsAICommand(Pointer memory)
SendUnitsAICommand
public SendUnitsAICommand(int[] unitIds,
int numUnitIds,
int receivingTeam,
int ret_sentUnits)
getTopic
public int getTopic()
- Specified by:
getTopic
in class AICommand