|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.via.RemoteUser
public class ExistsInRemoteWorld
TODO: The documentation for this type (ExistsInRemoteWorld) is incomplete. (brpocock, Nov 5, 2009)
| Field Summary | |
|---|---|
private static long |
serialVersionUID
TODO: document this field (brpocock, Nov 5, 2009) serialVersionUID (long) |
| Constructor Summary | |
|---|---|
ExistsInRemoteWorld()
|
|
| Method Summary | |
|---|---|
void |
acceptAdminMessage(Integer room,
String string)
This is an overriding method. |
void |
acceptAdminMessage(Room room,
String string)
This is an overriding method. |
void |
acceptGameAction(User sender,
org.json.JSONObject action)
Broadcast message of a game action taking place |
void |
acceptGameStateChange(GameEvent gameCode,
GameStateFlag gameState)
Notification of a GameEvent changing state for the room |
void |
acceptObjectJoinRoom(Room room,
ExistsInWorld object)
Notification that someone has entered the room. |
void |
acceptObjectPartRoom(Room room,
ExistsInWorld object)
Notification that someone has left a room |
void |
acceptOutOfBandMessage(ExistsInWorld 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(ExistsInWorld sender,
Room room,
String message)
This is an overriding method. |
void |
acceptPublicMessage(ExistsInWorld sender,
String message)
This is an overriding method. |
String |
getAvatarLabel()
The avatar label is the text block that is displayed with the avatar for this object. |
String |
getFacing()
Get the string identifying the direction which this object is facing. |
RoomAndZone |
getLocation()
TODO: document this method (brpocock, Oct 31, 2009) |
org.json.JSONObject |
getPublicInfo()
TODO: document this method (brpocock, Oct 31, 2009) avatar, userName, clothes, colors |
Room |
getRoom()
TODO: document this method (brpocock, Oct 31, 2009) |
double |
getTargetX()
TODO: document this method (brpocock, Oct 31, 2009) |
double |
getTargetY()
TODO: document this method (brpocock, Oct 31, 2009) |
double |
getTravelRate()
This is an overriding method. |
long |
getTravelStart()
This is an overriding method. |
int |
getUserID()
TODO: document this method (brpocock, Oct 31, 2009) |
String |
getVariable(String string)
TODO: document this method (brpocock, Oct 31, 2009) |
double |
getX()
TODO: document this method (brpocock, Oct 31, 2009) |
double |
getY()
TODO: document this method (brpocock, Oct 31, 2009) |
AbstractZone |
getZone()
TODO: document this method (brpocock, Oct 31, 2009) |
boolean |
hasVariable(String string)
This is an overriding method. |
boolean |
isNPC()
TODO: document this method (brpocock, Oct 31, 2009) |
boolean |
isOnline()
TODO: document this method (brpocock, Oct 31, 2009) |
void |
set(org.json.JSONObject o)
This method will attempt to set the data contents of this object to the values derived from the JSON object being passed-in. |
void |
setStartT(long when)
This is an overriding method. |
void |
setTravelRate(double rate)
This is an overriding method. |
void |
setX(double x2)
This is an overriding method. |
void |
setY(double y2)
This is an overriding method. |
org.json.JSONObject |
toJSON()
This returns a copy of the object's data cast into a JSON form. |
String |
toSFSXML()
TODO: document this method (brpocock, Oct 31, 2009) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long serialVersionUID
| Constructor Detail |
|---|
public ExistsInRemoteWorld()
| Method Detail |
|---|
public void acceptAdminMessage(Integer room,
String string)
acceptAdminMessage in interface ExistsInWorldroom - The room in which the administrative message is being
sent (often ignored)string - The administrative message.ExistsInWorld.acceptAdminMessage(java.lang.Integer,
java.lang.String)
public void acceptAdminMessage(Room room,
String string)
acceptAdminMessage in interface ExistsInWorldroom - The room in which the administrative message is being
sent (often ignored)string - The administrative message.ExistsInWorld.acceptAdminMessage(org.starhope.appius.game.Room,
java.lang.String)
public void acceptGameAction(User sender,
org.json.JSONObject action)
RoomListener
acceptGameAction in interface RoomListenersender - the senderaction - The game action. The verb is in
action.getString("action").RoomListener.acceptGameAction(org.starhope.appius.user.User,
org.json.JSONObject)
public void acceptGameStateChange(GameEvent gameCode,
GameStateFlag gameState)
RoomListener
acceptGameStateChange in interface RoomListenergameCode - The GameEvent whose state is changinggameState - The new stateRoomListener.acceptGameStateChange(org.starhope.appius.game.GameEvent,
org.starhope.appius.game.GameStateFlag)
public void acceptObjectJoinRoom(Room room,
ExistsInWorld object)
RoomListener
acceptObjectJoinRoom in interface RoomListenerroom - The roomobject - The thing (probably user) enteringRoomListener.acceptObjectJoinRoom(org.starhope.appius.game.Room,
org.starhope.appius.util.AbstractUser)
public void acceptObjectPartRoom(Room room,
ExistsInWorld object)
RoomListener
acceptObjectPartRoom in interface RoomListenerroom - The roomobject - The thing (probably user) departingRoomListener.acceptObjectPartRoom(org.starhope.appius.game.Room,
org.starhope.appius.util.AbstractUser)
public void acceptOutOfBandMessage(ExistsInWorld sender,
Room room,
org.json.JSONObject body)
RoomListener
acceptOutOfBandMessage in interface RoomListenersender - 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.util.AbstractUser,
org.starhope.appius.game.Room, org.json.JSONObject)
public void acceptPublicMessage(ExistsInWorld sender,
Room room,
String message)
acceptPublicMessage in interface RoomListenersender - The speakerroom - The room in which the words were spokenmessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.util.AbstractUser,
org.starhope.appius.game.Room, java.lang.String)
public void acceptPublicMessage(ExistsInWorld sender,
String message)
acceptPublicMessage in interface RoomListenersender - The speakermessage - The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.util.AbstractUser,
java.lang.String)public String getAvatarLabel()
ExistsInWorld
getAvatarLabel in interface ExistsInWorldExistsInWorld.getAvatarLabel()public String getFacing()
ExistsInWorld
getFacing in interface ExistsInWorldExistsInWorld.getFacing()public RoomAndZone getLocation()
RoomListener
getLocation in interface RoomListenerRoomListener.getLocation()public org.json.JSONObject getPublicInfo()
ExistsInWorld
getPublicInfo in interface ExistsInWorldExistsInWorld.getPublicInfo()public Room getRoom()
RoomListener
getRoom in interface RoomListenerRoomListener.getRoom()public double getTargetX()
ExistsInWorld
getTargetX in interface ExistsInWorldExistsInWorld.getTargetX()public double getTargetY()
ExistsInWorld
getTargetY in interface ExistsInWorldExistsInWorld.getTargetY()public double getTravelRate()
getTravelRate in interface ExistsInWorldExistsInWorld.getTravelRate()public long getTravelStart()
getTravelStart in interface ExistsInWorldExistsInWorld.getTravelStart()public int getUserID()
ExistsInWorld
getUserID in interface ExistsInWorldExistsInWorld.getUserID()public String getVariable(String string)
ExistsInWorld
getVariable in interface ExistsInWorldstring - WRITEME
ExistsInWorld.getVariable(java.lang.String)public double getX()
ExistsInWorld
getX in interface ExistsInWorldExistsInWorld.getX()public double getY()
ExistsInWorld
getY in interface ExistsInWorldExistsInWorld.getY()public AbstractZone getZone()
RoomListener
getZone in interface RoomListenerRoomListener.getZone()public boolean hasVariable(String string)
hasVariable in interface ExistsInWorldstring - WRITEME
ExistsInWorld.hasVariable(java.lang.String)public boolean isNPC()
ExistsInWorld
isNPC in interface ExistsInWorldExistsInWorld.isNPC()public boolean isOnline()
ExistsInWorld
isOnline in interface ExistsInWorldExistsInWorld.isOnline()public void set(org.json.JSONObject o)
CastsToJSON
set in interface CastsToJSONo - The JSON object containing a the new data for this
object.CastsToJSON.set(org.json.JSONObject)public void setStartT(long when)
setStartT in interface ExistsInWorldwhen - WRITEMEExistsInWorld.setStartT(long)public void setTravelRate(double rate)
setTravelRate in interface ExistsInWorldrate - WRITEMEExistsInWorld.setTravelRate(double)public void setX(double x2)
setX in interface ExistsInWorldx2 - WRITEMEExistsInWorld.setX(double)public void setY(double y2)
setY in interface ExistsInWorldy2 - WRITEMEExistsInWorld.setY(double)public org.json.JSONObject toJSON()
CastsToJSON
toJSON in interface CastsToJSONCastsToJSON.toJSON()public String toSFSXML()
ExistsInWorld
toSFSXML in interface ExistsInWorldExistsInWorld.toSFSXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||