com.tootsville.game
Class ShaddowFalls

java.lang.Object
  extended by org.starhope.appius.util.ManagedReferenceHolder
      extended by org.starhope.appius.sql.SQLPeerDatum
          extended by org.starhope.appius.game.GameEvent
              extended by com.tootsville.game.ShaddowFalls
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GameEvent>, RoomListener, AcceptsMetronomeTicks

public class ShaddowFalls
extends GameEvent

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.

Author:
brpocock
See Also:
Serialized Form

Constructor Summary
ShaddowFalls(Zone z)
           
 
Method Summary
 void acceptGameAction(User sender, org.json.JSONObject action)
          This is an overriding method.
 void acceptOutOfBandMessage(ExistsInWorld sender, Room room, org.json.JSONObject body)
          This is an overriding method.
 void acceptPublicMessage(User sender, java.lang.String message)
          This is an overriding method.
 void flush()
          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, acceptGameStateChange, acceptObjectJoinRoom, acceptObjectPartRoom, compareTo, equals, equals, getEveryone, getGameCode, getGameShortName, getLocation, getPlayers, getRoom, getRooms, getScoreWatchRooms, getSpectators, getTimer, getZone, incrementScore, propagateGameStateChange, toString
 
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum
changed, get, prepare, set, toJSON
 
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder
deref, setRef
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShaddowFalls

public ShaddowFalls(Zone z)
Parameters:
z - The zone containing this event
Method Detail

acceptGameAction

public void acceptGameAction(User sender,
                             org.json.JSONObject action)
This is an overriding method.

Parameters:
sender - the sender
action - The game action. The verb is in action.getString("action").
See Also:
RoomListener.acceptGameAction(org.starhope.appius.user.User, org.json.JSONObject)

acceptOutOfBandMessage

public void acceptOutOfBandMessage(ExistsInWorld sender,
                                   Room room,
                                   org.json.JSONObject body)
This is an overriding method.

Parameters:
sender - WRITEME
room - WRITEME
body - WRITEME
See Also:
RoomListener.acceptOutOfBandMessage(org.starhope.appius.util.AbstractUser, org.starhope.appius.game.Room, org.json.JSONObject)

acceptPublicMessage

public void acceptPublicMessage(User sender,
                                java.lang.String message)
This is an overriding method.

Parameters:
sender - WRITEME
message - WRITEME
See Also:
RoomListener.acceptPublicMessage(org.starhope.appius.user.User, java.lang.String)

flush

public void flush()
This is an overriding method.

Specified by:
flush in class SQLPeerDatum
See Also:
SQLPeerDatum.flush()

noOp

public void noOp()
No op


tick

public void tick(long t,
                 long dT)
          throws UserDeadException
This is an overriding method.

Specified by:
tick in interface AcceptsMetronomeTicks
Overrides:
tick in class GameEvent
Parameters:
t - 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
Throws:
UserDeadException - if a user has died during this tick
See Also:
GameEvent.tick(long, long)