|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.game.GameEvent
org.starhope.appius.game.laserTag.LaserTagGame
com.tootsville.game.ZapAttack
public final class ZapAttack
| Field Summary | |
|---|---|
private static long |
serialVersionUID
The POJO serialization ID |
| Fields inherited from class org.starhope.appius.game.GameEvent |
|---|
freezeTag, gameCode, gameState, players, rooms, scores, scoreWatchRooms |
| Constructor Summary | |
|---|---|
ZapAttack(Zone z)
|
|
| Method Summary | |
|---|---|
void |
acceptGameStateChange(GameEvent game,
GameStateFlag newGameState)
Accept notification of game state change. |
void |
acceptObjectJoinRoom(Room room,
RoomListener object)
Notification that someone has entered the room. |
void |
acceptOutOfBandMessage(AbstractUser sender,
Room room,
org.json.JSONObject body)
Accept an out-of-band communications packet that was broadcast to a room in which this Listener is listening. |
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. |
boolean |
equals(Object other)
This is an overriding method. |
boolean |
equals(ZapAttack other)
Determine if two instance pointers to Zap Attack are, in fact, the same instance |
String |
getGameEventPrefix()
This is an overriding method. |
String |
getName()
This is an overriding method. |
protected BigInteger |
getScoreForObject(String type,
int subtype)
|
int |
hashCode()
This is an overriding method. |
void |
noOp()
Guess what this doesn't do? Everything! |
| Methods inherited from class org.starhope.appius.game.laserTag.LaserTagGame |
|---|
acceptGameAction, configUpdated, getLeaderBonus |
| Methods inherited from class org.starhope.appius.game.GameEvent |
|---|
acceptCommand, acceptCommand, acceptObjectPartRoom, acceptUserVariableUpdate, changeGameState, compareTo, decrementScore, destroySelf, disconnect, equals, getCountdownDuration, getEveryone, getGameCode, getGameDuration, getGameShortName, getPlayers, getRoom, getRooms, getScoreWatchRooms, getSpectators, getTimer, getZone, incrementScore, propagateGameStateChange, resetPlayers, sendEndEvents, sendStartEvents, tick, 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
| Constructor Detail |
|---|
public ZapAttack(Zone z)
z - the zone in which the game is being played| Method Detail |
|---|
public void acceptGameStateChange(GameEvent game,
GameStateFlag newGameState)
acceptGameStateChange in interface RoomListeneracceptGameStateChange in class LaserTagGamegame - This game, hopefully.newGameState - The state into which we are entering.RoomListener.acceptGameStateChange(org.starhope.appius.game.GameEvent,
org.starhope.appius.game.GameStateFlag)
public void acceptObjectJoinRoom(Room room,
RoomListener object)
RoomListener
acceptObjectJoinRoom in interface RoomListeneracceptObjectJoinRoom in class GameEventroom - The roomobject - The thing (probably user) enteringRoomListener.acceptObjectJoinRoom(Room,
org.starhope.appius.game.RoomListener)
public void acceptOutOfBandMessage(AbstractUser sender,
Room room,
org.json.JSONObject body)
RoomListener
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 boolean equals(Object other)
equals in class GameEventGameEvent.equals(java.lang.Object)public boolean equals(ZapAttack other)
other - Another ZapAttack instance against which to compare
this one
public String getGameEventPrefix()
getGameEventPrefix in class GameEventGameEvent.getGameEventPrefix()public String getName()
HasName.getName()
protected BigInteger getScoreForObject(String type,
int subtype)
getScoreForObject in class LaserTagGametype - the target type, "itm" or "obs"subtype - the specific subtype of that target
LaserTagGame.getScoreForObject(String,
int)public int hashCode()
GameEvent
hashCode in class GameEventGameEvent.hashCode()public void noOp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||