com.springrts.ai.command
Class AddUnitToGroupAICommand

java.lang.Object
  extended by Structure
      extended by com.springrts.ai.AICommand
          extended by com.springrts.ai.command.AddUnitToGroupAICommand

public final class AddUnitToGroupAICommand
extends AICommand

Adds a unit to a specific group. If it was previously in a group, it is removed from that. Returns false if the group did not exist or did not accept the unit.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.springrts.ai.AICommand
AICommand.Option
 
Field Summary
 int groupId
           
 boolean ret_isExecuted
           
static int TOPIC
           
 int unitId
           
 
Constructor Summary
AddUnitToGroupAICommand()
           
AddUnitToGroupAICommand(int groupId, int unitId, boolean ret_isExecuted)
           
AddUnitToGroupAICommand(int groupId, Unit unit, boolean ret_isExecuted)
           
AddUnitToGroupAICommand(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

groupId

public int groupId

unitId

public int unitId

ret_isExecuted

public boolean ret_isExecuted
Constructor Detail

AddUnitToGroupAICommand

public AddUnitToGroupAICommand()

AddUnitToGroupAICommand

public AddUnitToGroupAICommand(Pointer memory)

AddUnitToGroupAICommand

public AddUnitToGroupAICommand(int groupId,
                               int unitId,
                               boolean ret_isExecuted)

AddUnitToGroupAICommand

public AddUnitToGroupAICommand(int groupId,
                               Unit unit,
                               boolean ret_isExecuted)
Method Detail

getTopic

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