|
||||||||||
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
- WRITEMEMethod Detail |
---|
public void add(GameEvent game)
add
in interface AbstractRoom
game
- 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 AbstractRoom
user
- who
AbstractRoom.contains(AbstractUser)
public void deleteVariable(String string)
deleteVariable
in interface AbstractRoom
string
- WRITEMEAbstractRoom.deleteVariable(java.lang.String)
public void destroySelf()
destroySelf
in interface AbstractRoom
AbstractRoom.destroySelf()
public boolean equals(AbstractRoom other)
other
- WRITEME
Object.equals(Object)
public void flush()
flush
in interface AbstractRoom
AbstractRoom.flush()
public void fromJSON(org.json.JSONObject jso) throws org.json.JSONException
fromJSON
in interface AbstractRoom
jso
- 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 AbstractRoom
AbstractRoom.getAllListeners()
public Collection<AbstractUser> getAllUsers()
getAllUsers
in interface AbstractRoom
AbstractRoom.getAllUsers()
public String getDebugName()
getDebugName
in interface AbstractRoom
AbstractRoom.getDebugName()
public String getFilename()
getFilename
in interface AbstractRoom
AbstractRoom.getFilename()
public GameEvent getGameEvent()
getGameEvent
in interface AbstractRoom
AbstractRoom.getGameEvent()
@Deprecated public int getId()
getID()
getId
in interface AbstractRoom
AbstractRoom.getId()
public int getID()
getID
in interface AbstractRoom
AbstractRoom.getID()
public Collection<RoomListener> getListeners()
getListeners
in interface AbstractRoom
AbstractRoom.getListeners()
public int getMaxUsers()
getMaxUsers
in interface AbstractRoom
AbstractRoom.getMaxUsers()
public String getMoniker()
getMoniker
in interface AbstractRoom
AbstractRoom.getMoniker()
public String getMusic()
getMusic
in interface AbstractRoom
AbstractRoom.getMusic()
public String getName()
getName
in interface AbstractRoom
AbstractRoom.getName()
public String getOverlay()
getOverlay
in interface AbstractRoom
AbstractRoom.getOverlay()
public AbstractUser getOwner()
getOwner
in interface AbstractRoom
AbstractRoom.getOwner()
public int getRoomIndex()
AbstractRoom
Get 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 AbstractRoom
AbstractRoom.getRoomIndex()
public String getSky()
getSky
in interface AbstractRoom
AbstractRoom.getSky()
public String getTitle()
getTitle
in interface AbstractRoom
AbstractRoom.getTitle()
public int getUserCount()
getUserCount
in interface AbstractRoom
AbstractRoom.getUserCount()
public String getVariable(String string)
getVariable
in interface AbstractRoom
string
- the variable name for which the value is requested
AbstractRoom.getVariable(java.lang.String)
public HashMap<String,String> getVariables()
getVariables
in interface AbstractRoom
AbstractRoom.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 AbstractRoom
AbstractRoom.getZone()
public boolean isLimbo()
isLimbo
in interface AbstractRoom
AbstractRoom.isLimbo()
public boolean isSkyVisible()
isSkyVisible
in interface AbstractRoom
AbstractRoom.isSkyVisible()
public void join(RoomListener who)
join
in interface AbstractRoom
who
- the thing that has joined the roomAbstractRoom.join(RoomListener)
public void part(RoomListener thing)
part
in interface AbstractRoom
thing
- 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 AbstractRoom
from
- 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 AbstractRoom
from
- WRITEMEspeech
- WRITEMEAbstractRoom.sendPublicMessage(org.starhope.appius.user.AbstractUser,
java.lang.String)
public void setFilename(String filename1)
setFilename
in interface AbstractRoom
filename1
- the filename to setAbstractRoom.setFilename(java.lang.String)
public void setLimbo(boolean b)
setLimbo
in interface AbstractRoom
b
- true, if this is a limbo roomAbstractRoom.setLimbo(boolean)
public void setMoniker(String moniker1)
setMoniker
in interface AbstractRoom
moniker1
- the moniker to setAbstractRoom.setMoniker(java.lang.String)
public void setMusic(String music1)
setMusic
in interface AbstractRoom
music1
- the new background musicAbstractRoom.setMusic(java.lang.String)
public void setOverlay(String overlay1)
setOverlay
in interface AbstractRoom
overlay1
- the overlay to setAbstractRoom.setOverlay(java.lang.String)
public void setOwner(AbstractUser newHomeOwner)
setOwner
in interface AbstractRoom
newHomeOwner
- new home ownerAbstractRoom.setOwner(org.starhope.appius.user.AbstractUser)
public void setRoomVars()
setRoomVars
in interface AbstractRoom
AbstractRoom.setRoomVars()
public void setSky(String sky1)
setSky
in interface AbstractRoom
sky1
- the sky to setAbstractRoom.setSky(java.lang.String)
public void setSkyVisible(boolean skyVisible1)
setSkyVisible
in interface AbstractRoom
skyVisible1
- the skyVisible to setAbstractRoom.setSkyVisible(boolean)
public void setTitle(String newTitle)
setTitle
in interface AbstractRoom
newTitle
- WRITEMEAbstractRoom.setTitle(java.lang.String)
public void setVariable(Map.Entry<String,String> var)
setVariable
in interface AbstractRoom
var
- 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 AbstractRoom
varName
- 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 AbstractRoom
map
- a map containing variables andAbstractRoom.setVariables(java.util.Map)
public org.json.JSONObject toJSON()
toJSON
in interface AbstractRoom
AbstractRoom.toJSON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |