|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.starhope.appius.via.RemoteZone
public class RemoteZone
TODO: The documentation for this type (RemoteZone) is incomplete. (brpocock, Nov 5, 2009)
| Field Summary | |
|---|---|
private static ConcurrentHashMap<String,AbstractZone> |
knownZones
WRITEME: document this field (brpocock, Jan 11, 2010) knownZones (RemoteZone) |
private int |
remotePort
The port number of the remote Appius server |
private String |
remoteServer
The hostname of the remote Appius server |
private String |
remoteZone
The zone to which this one is a peer |
| Constructor Summary | |
|---|---|
RemoteZone(String url)
|
|
| Method Summary | |
|---|---|
void |
activate()
This is an overriding method. |
void |
add(AbstractRoom room)
This is an overriding method. |
void |
clearAllBadges()
|
void |
clearAllBadges(AbstractRoom roomByName)
|
void |
clearBadge(String badgeName)
|
int |
compareTo(AbstractZone other)
|
void |
destroy()
This is an overriding method. |
void |
destroyRoom(AbstractRoom room)
This is an overriding method. |
Collection<Integer> |
getAllUsersIDsInZone()
|
Collection<AbstractUser> |
getAllUsersInZone()
This is an overriding method. |
static AbstractZone |
getByName(String remoteZoneName)
TODO: document this method (brpocock, Jan 11, 2010) |
String |
getHost()
This is an overriding method. |
int |
getMaxUsers()
This is an overriding method. |
String |
getName()
This is an overriding method. |
AbstractRoom |
getNextLobby()
|
int |
getPort()
This is an overriding method. |
AbstractRoom |
getRoom(Integer room)
This is an overriding method. |
AbstractRoom |
getRoomByName(String string)
This is an overriding method. |
Collection<AbstractRoom> |
getRoomList()
This is an overriding method. |
String |
getRoomListSFSXML()
This is an overriding method. |
int |
getRoomMaxUsers()
This is an overriding method. |
String |
getURL()
This is an overriding method. |
AbstractUser |
getUserByName(String buddy)
This is an overriding method. |
AbstractRoom |
getUserRoom(AbstractUser user)
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<AbstractZone> |
getViaPeerClass()
|
org.json.JSONObject |
getZoneData_JSON(AbstractUser user)
This is an overriding method. |
org.json.JSONObject |
getZoneList_JSON(AbstractUser u)
|
void |
handleSpeak(int roomNumber,
AbstractUser user,
String speech)
This is an overriding method. |
void |
init()
This is an overriding method. |
void |
remove(AbstractUser user)
This is an overriding method. |
void |
retire()
|
void |
set(org.json.JSONObject o)
|
void |
setAutoJoinRoom(int id)
This is an overriding method. |
void |
setBadge(String string,
AbstractRoom room)
|
String |
spawnNewZone()
This is an overriding method. |
void |
spawnZone(String newZone)
|
void |
tellEaves(AbstractUser user,
AbstractRoom room,
String verb,
String note)
This is an overriding method. |
org.json.JSONObject |
toJSON()
|
void |
trace(String string)
This is an overriding method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static ConcurrentHashMap<String,AbstractZone> knownZones
private final int remotePort
private final String remoteServer
private final String remoteZone
| Constructor Detail |
|---|
public RemoteZone(String url)
url - The URL of the remote Zone| Method Detail |
|---|
public static AbstractZone getByName(String remoteZoneName)
remoteZoneName - WRITEME
public void activate()
activate in interface AbstractZoneAbstractZone.activate()public void add(AbstractRoom room)
add in interface AbstractZoneroom - The room to be added.AbstractZone.add(org.starhope.appius.game.AbstractRoom)public void clearAllBadges()
clearAllBadges in interface AbstractZoneAbstractZone.clearAllBadges()public void clearAllBadges(AbstractRoom roomByName)
clearAllBadges in interface AbstractZoneAbstractZone.clearAllBadges(org.starhope.appius.game.AbstractRoom)
public void clearBadge(String badgeName)
throws GameLogicException
clearBadge in interface AbstractZoneGameLogicExceptionAbstractZone.clearBadge(java.lang.String)public int compareTo(AbstractZone other)
compareTo in interface AbstractZoneAbstractZone.compareTo(org.starhope.appius.types.AbstractZone)public void destroy()
destroy in interface AbstractZoneAbstractZone.destroy()public void destroyRoom(AbstractRoom room)
destroyRoom in interface AbstractZoneroom - WRITEMEAbstractZone.destroyRoom(org.starhope.appius.game.AbstractRoom)public Collection<Integer> getAllUsersIDsInZone()
getAllUsersIDsInZone in interface AbstractZoneAbstractZone.getAllUsersIDsInZone()public Collection<AbstractUser> getAllUsersInZone()
getAllUsersInZone in interface AbstractZoneAbstractZone.getAllUsersInZone()public String getHost()
getHost in interface AbstractZoneAbstractZone.getHost()public int getMaxUsers()
getMaxUsers in interface AbstractZoneAbstractZone.getMaxUsers()public String getName()
getName in interface AbstractZoneAbstractZone.getName()public AbstractRoom getNextLobby()
getNextLobby in interface AbstractZoneAbstractZone.getNextLobby()public int getPort()
getPort in interface AbstractZoneAbstractZone.getPort()public AbstractRoom getRoom(Integer room)
getRoom in interface AbstractZoneroom - WRITEME
AbstractZone.getRoom(java.lang.Integer)public AbstractRoom getRoomByName(String string)
getRoomByName in interface AbstractZonestring - WRITEME
AbstractZone.getRoomByName(java.lang.String)public Collection<AbstractRoom> getRoomList()
getRoomList in interface AbstractZoneAbstractZone.getRoomList()public String getRoomListSFSXML()
getRoomListSFSXML in interface AbstractZoneAbstractZone.getRoomListSFSXML()public int getRoomMaxUsers()
getRoomMaxUsers in interface AbstractZoneAbstractZone.getRoomMaxUsers()public String getURL()
getURL in interface AbstractZoneAbstractZone.getURL()public AbstractUser getUserByName(String buddy)
getUserByName in interface AbstractZonebuddy - WRITEME
AbstractZone.getUserByName(java.lang.String)public AbstractRoom getUserRoom(AbstractUser user)
getUserRoom in interface AbstractZoneuser - WRITEME
AbstractZone.getUserRoom(AbstractUser)public String getViaAppiaHostname()
getViaAppiaHostname in interface ViaMunita<AbstractZone>ViaMunita.getViaAppiaHostname()public String getViaAppiaRemoteEndpointID()
getViaAppiaRemoteEndpointID in interface ViaMunita<AbstractZone>ViaMunita.getViaAppiaRemoteEndpointID()public int getViaAppiaServerPort()
getViaAppiaServerPort in interface ViaMunita<AbstractZone>ViaMunita.getViaAppiaServerPort()public Class<AbstractZone> getViaPeerClass()
getViaPeerClass in interface ViaMunita<AbstractZone>ViaMunita.getViaPeerClass()
public org.json.JSONObject getZoneData_JSON(AbstractUser user)
throws org.json.JSONException
getZoneData_JSON in interface AbstractZoneuser - WRITEME
org.json.JSONException - if I can't do it rightAbstractZone.getZoneData_JSON(AbstractUser)public org.json.JSONObject getZoneList_JSON(AbstractUser u)
getZoneList_JSON in interface AbstractZoneAbstractZone.getZoneList_JSON(org.starhope.appius.user.AbstractUser)
public void handleSpeak(int roomNumber,
AbstractUser user,
String speech)
handleSpeak in interface AbstractZoneroomNumber - the room in which the user is speakinguser - the user speakingspeech - the speech to be spokenAbstractZone.handleSpeak(int,
AbstractUser, String)public void init()
init in interface AbstractZoneAbstractZone.init()public void remove(AbstractUser user)
remove in interface AbstractZoneuser - WRITEMEAbstractZone.remove(AbstractUser)public void retire()
retire in interface AbstractZoneAbstractZone.retire()public void set(org.json.JSONObject o)
o - WRITEMECastsToJSON.set(org.json.JSONObject)public void setAutoJoinRoom(int id)
setAutoJoinRoom in interface AbstractZoneid - WRITEMEAbstractZone.setAutoJoinRoom(int)
public void setBadge(String string,
AbstractRoom room)
setBadge in interface AbstractZoneAbstractZone.setBadge(java.lang.String,
org.starhope.appius.game.AbstractRoom)public String spawnNewZone()
spawnNewZone in interface AbstractZoneAbstractZone.spawnNewZone()public void spawnZone(String newZone)
spawnZone in interface AbstractZoneAbstractZone.spawnZone(java.lang.String)
public void tellEaves(AbstractUser user,
AbstractRoom room,
String verb,
String note)
tellEaves in interface AbstractZoneuser - The user who has actedroom - The room in which s/he has actedverb - The action s/he has takennote - Note(s) about the actionAbstractZone.tellEaves(AbstractUser,
AbstractRoom, String, String)public org.json.JSONObject toJSON()
CastsToJSON.toJSON()public void trace(String string)
trace in interface AbstractZonestring - WRITEMEAbstractZone.trace(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||