org.mars_sim.msp.core
Class UnitEvent
java.lang.Object
java.util.EventObject
org.mars_sim.msp.core.UnitEvent
- All Implemented Interfaces:
- Serializable
public class UnitEvent
- extends EventObject
A unit change event.
- See Also:
- Serialized Form
UnitEvent
public UnitEvent(Unit source,
String type,
Object target)
- Constructor
- Parameters:
source - the object throwing the event.type - the type of event.
getType
public String getType()
- Gets the type of event.
- Returns:
- event type
getTarget
public Object getTarget()
- Gets the target object of the event.
- Returns:
- target object or null if none.
toString
public String toString()
- Override toString() method.
- Overrides:
toString in class EventObject
Copyright © 2009-2013. All Rights Reserved.