|
||||||||||
| 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.ShaddowFalls
public class ShaddowFalls
Shaddow Falls is the home of the evil Shade, arch-nemesis of the Toots. Toots standing in Shaddow Falls are subject to an attrition of peanuts, except: God, Shade, Zap, and Catullus.
| Field Summary | |
|---|---|
private static long |
serialVersionUID
Java serialization. |
private long |
tPunish
Time at which to next punish users |
| Fields inherited from class org.starhope.appius.game.GameEvent |
|---|
freezeTag, gameCode, gameState, players, rooms, scores, scoreWatchRooms |
| Constructor Summary | |
|---|---|
ShaddowFalls(Zone z)
|
|
| Method Summary | |
|---|---|
void |
acceptGameAction(AbstractUser sender,
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 sender,
Room room,
String message)
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. |
String |
getGameEventPrefix()
This is an overriding method. |
String |
getName()
This is an overriding method. |
void |
noOp()
No op |
void |
tick(long t,
long dT)
This is an overriding method. |
| Methods inherited from class org.starhope.appius.game.GameEvent |
|---|
acceptCommand, acceptCommand, acceptGameStateChange, acceptObjectJoinRoom, acceptObjectPartRoom, acceptUserVariableUpdate, 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, updateRoomVars, updateScore, updateScores |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
private long tPunish
| Constructor Detail |
|---|
public ShaddowFalls(Zone z)
z - The zone containing this event| Method Detail |
|---|
public void acceptGameAction(AbstractUser sender,
org.json.JSONObject action)
sender - the senderaction - The game action. The verb is in
action.getString("action").RoomListener.acceptGameAction(AbstractUser,
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(AbstractUser,
Room, JSONObject)
public void acceptPublicMessage(AbstractUser sender,
Room room,
String message)
acceptPublicMessage in interface RoomListeneracceptPublicMessage in class GameEventsender - The speakerroom - The room in which the words were spokenmessage - The spoken text or /emoteRoomListener.acceptPublicMessage(AbstractUser,
Room, String)
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 String getGameEventPrefix()
getGameEventPrefix in class GameEventGameEvent.getGameEventPrefix()public String getName()
HasName.getName()public void noOp()
public void tick(long t,
long dT)
throws UserDeadException
tick in interface AcceptsMetronomeTickstick in class GameEventt - Time since epoch at the start of the global
metronome propagation, as per
System.currentTimeMillis()dT - 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 | |||||||||