|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.via.RemoteRoom
public class RemoteRoom
WRITEME: The documentation for this type (RemoteRoom) is incomplete. (brpocock, Jan 11, 2010)
| Field Summary | |
|---|---|
private String |
moniker
WRITEME: document this field (brpocock, Jan 13, 2010) moniker (RemoteRoom) |
private int |
remotePort
WRITEME |
private String |
remoteServer
WRITEME |
private String |
remoteZone
WRITEME |
private int |
roomID
WRITEME: document this field (brpocock, Jan 13, 2010) roomID (RemoteRoom) |
| Constructor Summary | |
|---|---|
RemoteRoom(String url)
WRITEME |
|
| Method Summary | |
|---|---|
void |
add(GameEvent game)
This is an overriding method. |
int |
compareTo(AbstractRoom other)
This is an overriding method. |
boolean |
contains(AbstractUser user)
This is an overriding method. |
void |
deleteVariable(String string)
This is an overriding method. |
void |
destroySelf()
This is an overriding method. |
boolean |
equals(AbstractRoom other)
This is an overriding method. |
void |
flush()
This is an overriding method. |
void |
fromJSON(org.json.JSONObject jso)
This is an overriding method. |
Set<RoomListener> |
getAllListeners()
This is an overriding method. |
Collection<AbstractUser> |
getAllUsers()
This is an overriding method. |
String |
getDebugName()
This is an overriding method. |
String |
getFilename()
This is an overriding method. |
GameEvent |
getGameEvent()
This is an overriding method. |
int |
getId()
Deprecated. use getID() |
int |
getID()
This is an overriding method. |
Collection<RoomListener> |
getListeners()
This is an overriding method. |
int |
getMaxUsers()
This is an overriding method. |
String |
getMoniker()
This is an overriding method. |
String |
getMusic()
This is an overriding method. |
String |
getName()
This is an overriding method. |
String |
getOverlay()
This is an overriding method. |
AbstractUser |
getOwner()
|
int |
getRoomIndex()
Get the index of this room within the set of rooms to which it belongs. |
String |
getSky()
This is an overriding method. |
String |
getTitle()
This is an overriding method. |
int |
getUserCount()
This is an overriding method. |
String |
getVariable(String string)
This is an overriding method. |
HashMap<String,String> |
getVariables()
This is an overriding method. |
String |
getViaAppiaHostname()
This is an overriding method. |
String |
getViaAppiaRemoteEndpointID()
This is an overriding method. |
int |
getViaAppiaServerPort()
This is an overriding method. |
Class<AbstractRoom> |
getViaPeerClass()
|
AbstractZone |
getZone()
This is an overriding method. |
boolean |
isLimbo()
This is an overriding method. |
boolean |
isSkyVisible()
This is an overriding method. |
void |
join(RoomListener who)
This is an overriding method. |
void |
part(RoomListener thing)
This is an overriding method. |
void |
sendGameAction(User from,
org.json.JSONObject data)
This is an overriding method. |
void |
sendPublicMessage(AbstractUser from,
String speech)
This is an overriding method. |
void |
setFilename(String filename1)
This is an overriding method. |
void |
setLimbo(boolean b)
This is an overriding method. |
void |
setMoniker(String moniker1)
This is an overriding method. |
void |
setMusic(String music1)
This is an overriding method. |
void |
setOverlay(String overlay1)
This is an overriding method. |
void |
setOwner(AbstractUser newHomeOwner)
This is an overriding method. |
void |
setRoomVars()
This is an overriding method. |
void |
setSky(String sky1)
This is an overriding method. |
void |
setSkyVisible(boolean skyVisible1)
This is an overriding method. |
void |
setTitle(String newTitle)
This is an overriding method. |
void |
setVariable(Map.Entry<String,String> var)
This is an overriding method. |
void |
setVariable(String varName,
String varValue)
This is an overriding method. |
void |
setVariables(Map<String,String> map)
This is an overriding method. |
org.json.JSONObject |
toJSON()
This is an overriding method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.starhope.appius.game.AbstractRoom |
|---|
hashCode |
| Field Detail |
|---|
private final String moniker
private final int remotePort
private final String remoteServer
private final String remoteZone
private final int roomID
| Constructor Detail |
|---|
public RemoteRoom(String url)
url - WRITEME| Method Detail |
|---|
public void add(GameEvent game)
add in interface AbstractRoomgame - WRITEMEAbstractRoom.add(org.starhope.appius.game.GameEvent)public int compareTo(AbstractRoom other)
other - another room to be compared against
Comparable.compareTo(Object)public boolean contains(AbstractUser user)
contains in interface AbstractRoomuser - who
AbstractRoom.contains(AbstractUser)public void deleteVariable(String string)
deleteVariable in interface AbstractRoomstring - WRITEMEAbstractRoom.deleteVariable(java.lang.String)public void destroySelf()
destroySelf in interface AbstractRoomAbstractRoom.destroySelf()public boolean equals(AbstractRoom other)
other - WRITEME
Object.equals(Object)public void flush()
flush in interface AbstractRoomAbstractRoom.flush()
public void fromJSON(org.json.JSONObject jso)
throws org.json.JSONException
fromJSON in interface AbstractRoomjso - Serialized form
org.json.JSONException - if the incoming data isn't in the right
formAbstractRoom.fromJSON(org.json.JSONObject)public Set<RoomListener> getAllListeners()
getAllListeners in interface AbstractRoomAbstractRoom.getAllListeners()public Collection<AbstractUser> getAllUsers()
getAllUsers in interface AbstractRoomAbstractRoom.getAllUsers()public String getDebugName()
getDebugName in interface AbstractRoomAbstractRoom.getDebugName()public String getFilename()
getFilename in interface AbstractRoomAbstractRoom.getFilename()public GameEvent getGameEvent()
getGameEvent in interface AbstractRoomAbstractRoom.getGameEvent()@Deprecated public int getId()
getID()
getId in interface AbstractRoomAbstractRoom.getId()public int getID()
getID in interface AbstractRoomAbstractRoom.getID()public Collection<RoomListener> getListeners()
getListeners in interface AbstractRoomAbstractRoom.getListeners()public int getMaxUsers()
getMaxUsers in interface AbstractRoomAbstractRoom.getMaxUsers()public String getMoniker()
getMoniker in interface AbstractRoomAbstractRoom.getMoniker()public String getMusic()
getMusic in interface AbstractRoomAbstractRoom.getMusic()public String getName()
getName in interface AbstractRoomAbstractRoom.getName()public String getOverlay()
getOverlay in interface AbstractRoomAbstractRoom.getOverlay()public AbstractUser getOwner()
getOwner in interface AbstractRoomAbstractRoom.getOwner()public int getRoomIndex()
AbstractRoomGet the index of this room within the set of rooms to which it belongs.
For user-created rooms, this is the index of the room number within the user's “house,” typically 0 for the first room, 1 for the yard, and 2 or more for additional rooms.
The meaning of this index varies depending upon context; presently, it is only meaningful for user houses.
getRoomIndex in interface AbstractRoomAbstractRoom.getRoomIndex()public String getSky()
getSky in interface AbstractRoomAbstractRoom.getSky()public String getTitle()
getTitle in interface AbstractRoomAbstractRoom.getTitle()public int getUserCount()
getUserCount in interface AbstractRoomAbstractRoom.getUserCount()public String getVariable(String string)
getVariable in interface AbstractRoomstring - the variable name for which the value is requested
AbstractRoom.getVariable(java.lang.String)public HashMap<String,String> getVariables()
getVariables in interface AbstractRoomAbstractRoom.getVariables()public String getViaAppiaHostname()
getViaAppiaHostname in interface ViaMunita<AbstractRoom>ViaMunita.getViaAppiaHostname()public String getViaAppiaRemoteEndpointID()
getViaAppiaRemoteEndpointID in interface ViaMunita<AbstractRoom>ViaMunita.getViaAppiaRemoteEndpointID()public int getViaAppiaServerPort()
getViaAppiaServerPort in interface ViaMunita<AbstractRoom>ViaMunita.getViaAppiaServerPort()public Class<AbstractRoom> getViaPeerClass()
getViaPeerClass in interface ViaMunita<AbstractRoom>ViaMunita.getViaPeerClass()public AbstractZone getZone()
getZone in interface AbstractRoomAbstractRoom.getZone()public boolean isLimbo()
isLimbo in interface AbstractRoomAbstractRoom.isLimbo()public boolean isSkyVisible()
isSkyVisible in interface AbstractRoomAbstractRoom.isSkyVisible()public void join(RoomListener who)
join in interface AbstractRoomwho - the thing that has joined the roomAbstractRoom.join(RoomListener)public void part(RoomListener thing)
part in interface AbstractRoomthing - the thing which wants to stop listening to the roomAbstractRoom.part(RoomListener)
public void sendGameAction(User from,
org.json.JSONObject data)
throws org.json.JSONException
sendGameAction in interface AbstractRoomfrom - WRITEMEdata - WRITEME
org.json.JSONException - if the action can't be represented in JSONAbstractRoom.sendGameAction(org.starhope.appius.user.User,
org.json.JSONObject)
public void sendPublicMessage(AbstractUser from,
String speech)
sendPublicMessage in interface AbstractRoomfrom - WRITEMEspeech - WRITEMEAbstractRoom.sendPublicMessage(org.starhope.appius.user.AbstractUser,
java.lang.String)public void setFilename(String filename1)
setFilename in interface AbstractRoomfilename1 - the filename to setAbstractRoom.setFilename(java.lang.String)public void setLimbo(boolean b)
setLimbo in interface AbstractRoomb - true, if this is a limbo roomAbstractRoom.setLimbo(boolean)public void setMoniker(String moniker1)
setMoniker in interface AbstractRoommoniker1 - the moniker to setAbstractRoom.setMoniker(java.lang.String)public void setMusic(String music1)
setMusic in interface AbstractRoommusic1 - the new background musicAbstractRoom.setMusic(java.lang.String)public void setOverlay(String overlay1)
setOverlay in interface AbstractRoomoverlay1 - the overlay to setAbstractRoom.setOverlay(java.lang.String)public void setOwner(AbstractUser newHomeOwner)
setOwner in interface AbstractRoomnewHomeOwner - new home ownerAbstractRoom.setOwner(org.starhope.appius.user.AbstractUser)public void setRoomVars()
setRoomVars in interface AbstractRoomAbstractRoom.setRoomVars()public void setSky(String sky1)
setSky in interface AbstractRoomsky1 - the sky to setAbstractRoom.setSky(java.lang.String)public void setSkyVisible(boolean skyVisible1)
setSkyVisible in interface AbstractRoomskyVisible1 - the skyVisible to setAbstractRoom.setSkyVisible(boolean)public void setTitle(String newTitle)
setTitle in interface AbstractRoomnewTitle - WRITEMEAbstractRoom.setTitle(java.lang.String)public void setVariable(Map.Entry<String,String> var)
setVariable in interface AbstractRoomvar - A Hash type Entry object containing a key-value pair
to be used to set a variable.AbstractRoom.setVariable(java.util.Map.Entry)
public void setVariable(String varName,
String varValue)
setVariable in interface AbstractRoomvarName - the name of the room variable to altervarValue - the new valueAbstractRoom.setVariable(java.lang.String,
java.lang.String)public void setVariables(Map<String,String> map)
setVariables in interface AbstractRoommap - a map containing variables andAbstractRoom.setVariables(java.util.Map)public org.json.JSONObject toJSON()
toJSON in interface AbstractRoomAbstractRoom.toJSON()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||