com.springrts.ai.command
Class SendUnitsAICommand

java.lang.Object
  extended by Structure
      extended by com.springrts.ai.AICommand
          extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.springrts.ai.AICommand
AICommand.Option
 
Field Summary
 int numUnitIds
           
 int receivingTeam
           
 int ret_sentUnits
           
static int TOPIC
           
 int[] unitIds
           
 
Constructor Summary
SendUnitsAICommand()
           
SendUnitsAICommand(int[] unitIds, int numUnitIds, int receivingTeam, int ret_sentUnits)
           
SendUnitsAICommand(Pointer memory)
           
 
Method Summary
 int getTopic()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SendUnitsAICommand

public SendUnitsAICommand()

SendUnitsAICommand

public SendUnitsAICommand(Pointer memory)

SendUnitsAICommand

public SendUnitsAICommand(int[] unitIds,
                          int numUnitIds,
                          int receivingTeam,
                          int ret_sentUnits)
Method Detail

getTopic

public int getTopic()
Specified by:
getTopic in class AICommand