net.vee.btech.saikoro.event
Class GameManagerEvent
java.lang.Object
|
+--java.util.EventObject
|
+--net.vee.btech.saikoro.event.GameManagerEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class GameManagerEvent
- extends java.util.EventObject
GameManager events generated by the GameManager for common
management occurances.
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
| 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 |
SAVE
public static final int SAVE
LOAD
public static final int LOAD
CREATE
public static final int CREATE
CLOSE
public static final int CLOSE
GameManagerEvent
public GameManagerEvent(GameManager aSrc,
int aType)
- Constructs a new GameMangerEvent.
- Parameters:
aSrc - the GameManager at which the event originated.aType - the type of event.
GameManagerEvent
public GameManagerEvent(GameManager aSrc,
int aType,
Game aPreviousGame)
- Constructs a new GameMangerEvent.
- Parameters:
aSrc - the GameManager at which the event originated.aType - the type of event.aPrevousGame - the previous game in a relaced game event.
May be null.
getSourceManager
public GameManager getSourceManager()
- A convenience method which returns the event's originating manager.
- Returns:
- the event's originating manager, the same object as getSource().
getEventType
public int getEventType()
- Returns the event type.
getPreviousGame
public Game getPreviousGame()
- Returns the previous game in a relaced game event. This may be null.