|
||||||||||
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.PropsWeather
public class PropsWeather
Set the weather value to the special Props animation on each screen across the main row of Tootsville on a timer
Field Summary | |
---|---|
private Room[] |
animationRooms
The ordered set of rooms for which the weather is to be set |
private long |
phase
The current phase of the animation sequence |
private static long |
serialVersionUID
Java serialization unique ID |
Fields inherited from class org.starhope.appius.game.GameEvent |
---|
freezeTag, gameCode, gameState, players, rooms, scores, scoreWatchRooms |
Constructor Summary | |
---|---|
PropsWeather(Zone z)
Instantiate the Props weather pattern |
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. |
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. |
Methods inherited from class org.starhope.appius.game.GameEvent |
---|
acceptCommand, acceptCommand, acceptGameStateChange, acceptObjectJoinRoom, acceptObjectPartRoom, acceptPublicMessage, 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, 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 final Room[] animationRooms
private long phase
Constructor Detail |
---|
public PropsWeather(Zone z)
z
- The zone to which it should be connectedMethod 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 String getGameEventPrefix()
getGameEventPrefix
in class GameEvent
GameEvent.getGameEventPrefix()
public String getName()
HasName.getName()
public void tick(long currentTime, long deltaTime) throws UserDeadException
tick
in interface AcceptsMetronomeTicks
tick
in class GameEvent
currentTime
- 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 GameEvent
GameEvent.updateRoomVars()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |