|
||||||||||
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 ExistsInWorld
room
- 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 ExistsInWorld
room
- 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 RoomListener
sender
- 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 RoomListener
gameCode
- 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 RoomListener
room
- 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 RoomListener
room
- 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 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(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 RoomListener
sender
- 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 RoomListener
sender
- The speakermessage
- The spoken text or /emoteRoomListener.acceptPublicMessage(org.starhope.appius.util.AbstractUser,
java.lang.String)
public String getAvatarLabel()
ExistsInWorld
getAvatarLabel
in interface ExistsInWorld
ExistsInWorld.getAvatarLabel()
public String getFacing()
ExistsInWorld
getFacing
in interface ExistsInWorld
ExistsInWorld.getFacing()
public RoomAndZone getLocation()
RoomListener
getLocation
in interface RoomListener
RoomListener.getLocation()
public org.json.JSONObject getPublicInfo()
ExistsInWorld
getPublicInfo
in interface ExistsInWorld
ExistsInWorld.getPublicInfo()
public Room getRoom()
RoomListener
getRoom
in interface RoomListener
RoomListener.getRoom()
public double getTargetX()
ExistsInWorld
getTargetX
in interface ExistsInWorld
ExistsInWorld.getTargetX()
public double getTargetY()
ExistsInWorld
getTargetY
in interface ExistsInWorld
ExistsInWorld.getTargetY()
public double getTravelRate()
getTravelRate
in interface ExistsInWorld
ExistsInWorld.getTravelRate()
public long getTravelStart()
getTravelStart
in interface ExistsInWorld
ExistsInWorld.getTravelStart()
public int getUserID()
ExistsInWorld
getUserID
in interface ExistsInWorld
ExistsInWorld.getUserID()
public String getVariable(String string)
ExistsInWorld
getVariable
in interface ExistsInWorld
string
- WRITEME
ExistsInWorld.getVariable(java.lang.String)
public double getX()
ExistsInWorld
getX
in interface ExistsInWorld
ExistsInWorld.getX()
public double getY()
ExistsInWorld
getY
in interface ExistsInWorld
ExistsInWorld.getY()
public AbstractZone getZone()
RoomListener
getZone
in interface RoomListener
RoomListener.getZone()
public boolean hasVariable(String string)
hasVariable
in interface ExistsInWorld
string
- WRITEME
ExistsInWorld.hasVariable(java.lang.String)
public boolean isNPC()
ExistsInWorld
isNPC
in interface ExistsInWorld
ExistsInWorld.isNPC()
public boolean isOnline()
ExistsInWorld
isOnline
in interface ExistsInWorld
ExistsInWorld.isOnline()
public void set(org.json.JSONObject o)
CastsToJSON
set
in interface CastsToJSON
o
- The JSON object containing a the new data for this
object.CastsToJSON.set(org.json.JSONObject)
public void setStartT(long when)
setStartT
in interface ExistsInWorld
when
- WRITEMEExistsInWorld.setStartT(long)
public void setTravelRate(double rate)
setTravelRate
in interface ExistsInWorld
rate
- WRITEMEExistsInWorld.setTravelRate(double)
public void setX(double x2)
setX
in interface ExistsInWorld
x2
- WRITEMEExistsInWorld.setX(double)
public void setY(double y2)
setY
in interface ExistsInWorld
y2
- WRITEMEExistsInWorld.setY(double)
public org.json.JSONObject toJSON()
CastsToJSON
toJSON
in interface CastsToJSON
CastsToJSON.toJSON()
public String toSFSXML()
ExistsInWorld
toSFSXML
in interface ExistsInWorld
ExistsInWorld.toSFSXML()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |