public abstract class GameEvent
extends java.lang.Object
GameManager
,
cvs GameEvent.javaModifier and Type | Class and Description |
---|---|
static class |
GameEvent.Life
events have two possible lives: transient and persistent.
|
static class |
GameEvent.Type
A game event type.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
playerName |
protected int |
who |
Constructor and Description |
---|
GameEvent() |
Modifier and Type | Method and Description |
---|---|
int |
getDepth()
Return -1 or 1 depending on whether this event plays the negative side or positive side of the board.
|
abstract GameEvent.Life |
getLife()
Get the Life type of this GameEvent
|
java.lang.String |
getPlayerName()
Get the playerName of this event.
|
abstract GameEvent.Type |
getType()
Get the Type of this GameEvent
|
int |
getWho()
Return the creator of this event (Black or White).
|
void |
setPlayerName(java.lang.String playerName)
Set the playerName of this event.
|
void |
setWho(int xo)
Who's event is this?
|
public abstract GameEvent.Type getType()
public abstract GameEvent.Life getLife()
public void setWho(int xo)
xo
- Either Board.X or Board.Opublic int getWho()
public int getDepth()
public java.lang.String getPlayerName()
public void setPlayerName(java.lang.String playerName)
playerName
- The name of the player who created this event.