megamek.common.event
Class GameEntityChangeEvent
java.lang.Object
java.util.EventObject
megamek.common.event.GameEvent
megamek.common.event.GameEntityEvent
megamek.common.event.GameEntityChangeEvent
- All Implemented Interfaces:
- java.io.Serializable
public class GameEntityChangeEvent
- extends GameEntityEvent
Instances of this class are sent game entity is changed
- See Also:
GameListener,
Serialized Form
| Fields inherited from class megamek.common.event.GameEvent |
GAME_BOARD_CHANGE, GAME_BOARD_NEW, GAME_END, GAME_ENTITY_CHANGE, GAME_ENTITY_NEW, GAME_ENTITY_NEW_OFFBOARD, GAME_ENTITY_REMOVE, GAME_MAP_QUERY, GAME_NEW_ACTION, GAME_PHASE_CHANGE, GAME_PLAYER_CHANGE, GAME_PLAYER_CHAT, GAME_PLAYER_CONNECTED, GAME_PLAYER_DISCONNECTED, GAME_REPORT, GAME_SETTINGS_CHANGE, GAME_TURN_CHANGE, type |
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
movePath
protected java.util.Vector<UnitLocation> movePath
GameEntityChangeEvent
public GameEntityChangeEvent(java.lang.Object source,
Entity entity)
- Constructs new GameEntityChangeEvent
- Parameters:
source - entity -
GameEntityChangeEvent
public GameEntityChangeEvent(java.lang.Object source,
Entity entity,
java.util.Vector<UnitLocation> movePath)
- Constructs new GameEntityChangeEvent
- Parameters:
source - entity - movePath -
getMovePath
public java.util.Vector<UnitLocation> getMovePath()
- Returns:
- the movePath.
toString
public java.lang.String toString()
- Overrides:
toString in class GameEvent