com.tootsville.game
Class ZapAttack

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 org.starhope.appius.game.LaserTagGame
                  extended by com.tootsville.game.ZapAttack
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<GameEvent>, RoomListener, AcceptsMetronomeTicks

public final class ZapAttack
extends LaserTagGame

Author:
brpocock, theys, rdawson
See Also:
Serialized Form

Constructor Summary
ZapAttack(Zone z)
           
 
Method Summary
 void acceptGameStateChange(GameEvent game, GameStateFlag newGameState)
          Accept notification of game state change.
 void acceptObjectJoinRoom(Room room, ExistsInWorld object)
          Notification that someone has entered the room.
 void acceptOutOfBandMessage(ExistsInWorld sender, Room room, org.json.JSONObject body)
          TODO: document this method (brpocock, Oct 31, 2009)
 void acceptPublicMessage(User sender, java.lang.String message)
          TODO: document this method (brpocock, Oct 31, 2009)
 void flush()
           
 void noOp()
          Guess what this doesn't do? Everything!
 
Methods inherited from class org.starhope.appius.game.LaserTagGame
acceptGameAction
 
Methods inherited from class org.starhope.appius.game.GameEvent
acceptCommand, acceptObjectPartRoom, compareTo, equals, equals, getEveryone, getGameCode, getGameShortName, getLocation, getPlayers, getRoom, getRooms, getScoreWatchRooms, getSpectators, getTimer, getZone, incrementScore, propagateGameStateChange, tick, 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

ZapAttack

public ZapAttack(Zone z)
Parameters:
z - the zone in which the game is being played
Method Detail

acceptGameStateChange

public void acceptGameStateChange(GameEvent game,
                                  GameStateFlag newGameState)
Accept notification of game state change. Set up practice mode, if necessary; clear remaining targets upon leaving practice mode.

Specified by:
acceptGameStateChange in interface RoomListener
Overrides:
acceptGameStateChange in class LaserTagGame
Parameters:
game - This game, hopefully.
newGameState - The state into which we are entering.
See Also:
RoomListener.acceptGameStateChange(org.starhope.appius.game.GameEvent, org.starhope.appius.game.GameStateFlag)

acceptObjectJoinRoom

public void acceptObjectJoinRoom(Room room,
                                 ExistsInWorld object)
Description copied from interface: RoomListener
Notification that someone has entered the room.

Specified by:
acceptObjectJoinRoom in interface RoomListener
Overrides:
acceptObjectJoinRoom in class GameEvent
Parameters:
room - The room
object - The thing (probably user) entering
See Also:
RoomListener.acceptObjectJoinRoom(org.starhope.appius.game.Room, org.starhope.appius.util.AbstractUser)

acceptOutOfBandMessage

public void acceptOutOfBandMessage(ExistsInWorld sender,
                                   Room room,
                                   org.json.JSONObject body)
Description copied from interface: RoomListener
TODO: document this method (brpocock, Oct 31, 2009)

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)
Description copied from interface: RoomListener
TODO: document this method (brpocock, Oct 31, 2009)

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

flush

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

noOp

public void noOp()
Guess what this doesn't do? Everything!