com.springrts.ai.event
Class ReleaseAIEvent

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

public final class ReleaseAIEvent
extends AIEvent

This AI event tells a Skirmish AI instance, that it is no longer needed. It can be used to free memory or do other cleanup work. It is sent only once per AI instance and game, as the very last event. Values description for reason: 0: unspecified 1: game ended 2: team died 3: AI killed 4: AI crashed 5: AI failed to init 6: connection lost 7: other reason


Field Summary
 int reason
           
static int TOPIC
           
 
Constructor Summary
ReleaseAIEvent(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

reason

public int reason
Constructor Detail

ReleaseAIEvent

public ReleaseAIEvent(Pointer memory)
Method Detail

getTopic

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