|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgecco.server.core.UnitEvent
This class encapsulates an event sent to a unit. Each event has a name and a factor, which can be used to indicate how "strong" the event is, or similar things.
Constructor Summary | |
UnitEvent(String _name,
int _factor)
Constructor for the UnitEvent object |
Method Summary | |
int |
getEventId()
Gets the unique id that identifies this event. |
int |
getFactor()
Gets the factor of the event. |
String |
getName()
Gets the name of the event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnitEvent(String _name, int _factor)
_name
- The name of the event._factor
- The factor of the event.Method Detail |
public String getName()
public int getFactor()
public int getEventId()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |