com.springrts.ai.event
Class ReleaseAIEvent
java.lang.Object
Structure
com.springrts.ai.AIEvent
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TOPIC
public static final int TOPIC
- See Also:
- Constant Field Values
reason
public int reason
ReleaseAIEvent
public ReleaseAIEvent(Pointer memory)
getTopic
public int getTopic()
- Specified by:
getTopic
in class AIEvent