com.tootsville.game
Class ZapAttack
java.lang.Object
org.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.game.GameEvent
org.starhope.appius.game.LaserTagGame
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
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 java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
ZapAttack
public ZapAttack(Zone z)
- Parameters:
z
- the zone in which the game is being played
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 roomobject
- 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
- WRITEMEroom
- WRITEMEbody
- 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
- WRITEMEmessage
- 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!