com.springrts.ai.event
Class UnitGivenAIEvent

java.lang.Object
  extended by Structure
      extended by com.springrts.ai.AIEvent
          extended by com.springrts.ai.event.UnitGivenAIEvent

public final class UnitGivenAIEvent
extends AIEvent

This AI event is sent when a unit changed from one team to an other either because the old owner gave it to the new one, or because the new one took it from the old one; see the /take command.


Field Summary
 int newTeamId
           
 int oldTeamId
           
static int TOPIC
           
 int unitId
           
 
Constructor Summary
UnitGivenAIEvent(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

unitId

public int unitId

oldTeamId

public int oldTeamId

newTeamId

public int newTeamId
Constructor Detail

UnitGivenAIEvent

public UnitGivenAIEvent(Pointer memory)
Method Detail

getTopic

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