megamek.common.event
Class BoardEvent

java.lang.Object
  extended by java.util.EventObject
      extended by megamek.common.event.BoardEvent
All Implemented Interfaces:
java.io.Serializable

public class BoardEvent
extends java.util.EventObject

Instances of this class are sent as a result of Board change

See Also:
BoardListener, Serialized Form

Field Summary
static int BOARD_CHANGED_ALL_HEXES
           
static int BOARD_CHANGED_HEX
           
static int BOARD_NEW_BOARD
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BoardEvent(java.lang.Object source, Coords coords, int type)
           
 
Method Summary
 Coords getCoords()
           
 int getType()
           
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BOARD_NEW_BOARD

public static final int BOARD_NEW_BOARD
See Also:
Constant Field Values

BOARD_CHANGED_HEX

public static final int BOARD_CHANGED_HEX
See Also:
Constant Field Values

BOARD_CHANGED_ALL_HEXES

public static final int BOARD_CHANGED_ALL_HEXES
See Also:
Constant Field Values
Constructor Detail

BoardEvent

public BoardEvent(java.lang.Object source,
                  Coords coords,
                  int type)
Method Detail

getType

public int getType()
Returns:
the type of event that this is

getCoords

public Coords getCoords()
Returns:
the coordinate where this event occurred, if applicable; null otherwise.