com.springrts.ai.command
Class SendResourcesAICommand

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

public final class SendResourcesAICommand
extends AICommand

Give units of resource to team . - the amount is capped to the AI team's resource levels - does not check for alliance with - LuaRules might not allow resource transfers, AI's must verify the deduction


Nested Class Summary
 
Nested classes/interfaces inherited from class com.springrts.ai.AICommand
AICommand.Option
 
Field Summary
 float amount
           
 int receivingTeam
           
 int resourceId
           
 boolean ret_isExecuted
           
static int TOPIC
           
 
Constructor Summary
SendResourcesAICommand()
           
SendResourcesAICommand(int resourceId, float amount, int receivingTeam, boolean ret_isExecuted)
           
SendResourcesAICommand(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

resourceId

public int resourceId

amount

public float amount

receivingTeam

public int receivingTeam

ret_isExecuted

public boolean ret_isExecuted
Constructor Detail

SendResourcesAICommand

public SendResourcesAICommand()

SendResourcesAICommand

public SendResourcesAICommand(Pointer memory)

SendResourcesAICommand

public SendResourcesAICommand(int resourceId,
                              float amount,
                              int receivingTeam,
                              boolean ret_isExecuted)
Method Detail

getTopic

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