|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.game.GameEvent
com.tootsville.game.Tootlympics
public class Tootlympics
Tootlympics scoreboard and torch-lighting magic with Superstar
| Field Summary | |
|---|---|
(package private) int |
bottom
WRITEME: document this field (brpocock@star-hope.org, Feb 12, 2010) bottom (Tootlympics) |
(package private) int |
left
WRITEME: document this field (brpocock@star-hope.org, Feb 12, 2010) left (Tootlympics) |
private long |
nextUpdate
Time to next refresh scoreboard |
(package private) int |
right
WRITEME: document this field (brpocock@star-hope.org, Feb 12, 2010) right (Tootlympics) |
private static long |
serialVersionUID
Java Serialisation |
(package private) int |
top
WRITEME: document this field (brpocock@star-hope.org, Feb 12, 2010) top (Tootlympics) |
| Fields inherited from class org.starhope.appius.game.GameEvent |
|---|
freezeTag, gameCode, gameState, players, rooms, scores, scoreWatchRooms |
| Constructor Summary | |
|---|---|
Tootlympics(Zone z)
Instantiate the Tootlympics into a Zone |
|
| Method Summary | |
|---|---|
void |
acceptGameAction(AbstractUser u,
org.json.JSONObject action)
This is an overriding method. |
void |
acceptOutOfBandMessage(AbstractUser sender,
Room room,
org.json.JSONObject body)
This is an overriding method. |
void |
acceptPublicMessage(AbstractUser from,
String message)
This is an overriding method. |
void |
acceptUserAction(Room r,
AbstractUser u)
User actions (go/do actions) propagate through this channel. |
void |
acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
This is an overriding method. |
String |
getGameEventPrefix()
This is an overriding method. |
String |
getName()
This is an overriding method. |
void |
tick(long currentTime,
long deltaTime)
This is an overriding method. |
protected void |
updateRoomVars()
This is an overriding method. |
protected void |
updateScores()
This is an overriding method. |
| Methods inherited from class org.starhope.appius.game.GameEvent |
|---|
acceptCommand, acceptCommand, acceptGameStateChange, acceptObjectJoinRoom, acceptObjectPartRoom, acceptPublicMessage, changeGameState, compareTo, decrementScore, destroySelf, disconnect, equals, equals, getCountdownDuration, getEveryone, getGameCode, getGameDuration, getGameShortName, getLeaderBonus, getPlayers, getRoom, getRooms, getScoreWatchRooms, getSpectators, getTimer, getZone, hashCode, incrementScore, propagateGameStateChange, resetPlayers, sendEndEvents, sendStartEvents, toString, updateScore |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
int bottom
int left
private long nextUpdate
int right
int top
| Constructor Detail |
|---|
public Tootlympics(Zone z)
z - The Zone into which it should be instantiated| Method Detail |
|---|
public void acceptGameAction(AbstractUser u,
org.json.JSONObject action)
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,
Room room,
org.json.JSONObject body)
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.Room, org.json.JSONObject)
public void acceptPublicMessage(AbstractUser from,
String message)
from - The speakermessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.user.AbstractUser,
java.lang.String)
public void acceptUserAction(Room r,
AbstractUser u)
RoomListener
r - the room in which the user is taking an actionu - the user taking an actionRoomListener.acceptUserAction(org.starhope.appius.game.Room, org.starhope.appius.user.AbstractUser)
public void acceptUserVariableUpdate(AbstractUser user,
String varName,
String varValue)
acceptUserVariableUpdate in interface RoomListeneracceptUserVariableUpdate in class GameEventuser - The user updating their variablevarName - The name of the variable (key)varValue - The new value (null if unset)GameEvent.acceptUserVariableUpdate(org.starhope.appius.user.AbstractUser,
java.lang.String, java.lang.String)public String getGameEventPrefix()
getGameEventPrefix in class GameEventGameEvent.getGameEventPrefix()public String getName()
HasName.getName()
public void tick(long currentTime,
long deltaTime)
throws UserDeadException
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)protected void updateRoomVars()
updateRoomVars in class GameEventGameEvent.updateRoomVars()protected void updateScores()
updateScores in class GameEventGameEvent.updateScores()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||