|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.game.GameEvent
org.starhope.appius.game.maze.MazeGame
public abstract class MazeGame
WRITEME: Document this type.
| Field Summary | |
|---|---|
private long |
nextCreateTile
WRITEME: Document this brpocock@star-hope.org |
private long |
nextDestroyTile
WRITEME: Document this brpocock@star-hope.org |
private static long |
serialVersionUID
WRITEME: Document this brpocock@star-hope.org |
| Fields inherited from class org.starhope.appius.game.GameEvent |
|---|
freezeTag, gameCode, gameState, players, rooms, scores, scoreWatchRooms |
| Constructor Summary | |
|---|---|
MazeGame(Zone z)
|
|
| Method Summary | |
|---|---|
void |
acceptGameAction(AbstractUser u,
org.json.JSONObject action)
Broadcast message of a game action taking place |
void |
acceptOutOfBandMessage(AbstractUser sender,
AbstractRoom room,
org.json.JSONObject body)
Accept an out-of-band communications packet that was broadcast to a room in which this Listener is listening. |
void |
acceptPublicMessage(AbstractUser from,
String message)
Accept a public chat message. |
protected abstract void |
addEntrance()
WRITEME: Document this method brpocock@star-hope.org |
private void |
connectMazeRooms(List<MazeRoom> maze)
WRITEME: Document this method brpocock@star-hope.org |
private void |
connectSpecialRooms(List<MazeRoom> maze)
WRITEME: Document this method brpocock@star-hope.org |
void |
flush()
|
private List<MazeRoom> |
spawnMazeRooms()
WRITEME: Document this method brpocock@star-hope.org |
protected abstract MazeRoom |
spawnRoom(int i)
new MazeRoom (getZone (), i); WRITEME: Document this method brpocock@star-hope.org |
private void |
spawnRooms()
spawn rooms |
private void |
startMazeGenerators()
WRITEME: Document this method brpocock@star-hope.org |
void |
tick(long currentTime,
long deltaTime)
This method is called periodically from the metronome thread. |
| Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
|---|
changed, compareTo, findInCache, get, saveInCache, set, toJSON |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.util.HasName |
|---|
getName |
| Field Detail |
|---|
private static final long serialVersionUID
private long nextCreateTile
private long nextDestroyTile
| Constructor Detail |
|---|
public MazeGame(Zone z)
z - WRITEME| Method Detail |
|---|
public void acceptGameAction(AbstractUser u,
org.json.JSONObject action)
RoomListener
u - the senderaction - The game action. The verb is in
action.getString("action").RoomListener.acceptGameAction(org.starhope.appius.user.AbstractUser,
org.json.JSONObject)
public void acceptOutOfBandMessage(AbstractUser sender,
AbstractRoom room,
org.json.JSONObject body)
RoomListener
sender - The sender of the OOB messageroom - The room in which the OOB message is being broadcastbody - A JSON object containing the OOB message. The
contents of this message are not constrained.RoomListener.acceptOutOfBandMessage(org.starhope.appius.user.AbstractUser,
org.starhope.appius.game.AbstractRoom, org.json.JSONObject)
public void acceptPublicMessage(AbstractUser from,
String message)
RoomListener
from - The speakermessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.user.AbstractUser,
java.lang.String)protected abstract void addEntrance()
private void connectMazeRooms(List<MazeRoom> maze)
maze - the maze roomsprivate void connectSpecialRooms(List<MazeRoom> maze)
maze - the maze roomspublic void flush()
flush in class SQLPeerDatumSQLPeerDatum.flush()private List<MazeRoom> spawnMazeRooms()
protected abstract MazeRoom spawnRoom(int i)
i - WRITEME
private void spawnRooms()
private void startMazeGenerators()
public void tick(long currentTime,
long deltaTime)
throws UserDeadException
AcceptsMetronomeTicks
tick in interface AcceptsMetronomeTickstick in class GameEventcurrentTime - Time since epoch at the start of the global
metronome propagation, as per
System.currentTimeMillis()deltaTime - Delta-time in milliseconds since the prior
global metronome tick
UserDeadException - if a user has died during this tickGameEvent.tick(long, long)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||