com.springrts.ai.event
Class UnitCreatedAIEvent

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

public final class UnitCreatedAIEvent
extends AIEvent

This AI event is sent whenever a unit of this team is created, and contains the created unit. Usually, the unit has only 1 HP at this time, and consists only of a nano frame (-> will not accept commands yet); see also the unit-finnished event.


Field Summary
 int builder
           
static int TOPIC
           
 int unit
           
 
Constructor Summary
UnitCreatedAIEvent(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

unit

public int unit

builder

public int builder
Constructor Detail

UnitCreatedAIEvent

public UnitCreatedAIEvent(Pointer memory)
Method Detail

getTopic

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