|
||||||||||
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 ZoneMethod Detail |
---|
public static AbstractZone getByName(String remoteZoneName)
remoteZoneName
- WRITEME
public void activate()
activate
in interface AbstractZone
AbstractZone.activate()
public void add(AbstractRoom room)
add
in interface AbstractZone
room
- The room to be added.AbstractZone.add(org.starhope.appius.game.AbstractRoom)
public void clearAllBadges()
clearAllBadges
in interface AbstractZone
AbstractZone.clearAllBadges()
public void clearAllBadges(AbstractRoom roomByName)
clearAllBadges
in interface AbstractZone
AbstractZone.clearAllBadges(org.starhope.appius.game.AbstractRoom)
public void clearBadge(String badgeName) throws GameLogicException
clearBadge
in interface AbstractZone
GameLogicException
AbstractZone.clearBadge(java.lang.String)
public int compareTo(AbstractZone other)
compareTo
in interface AbstractZone
AbstractZone.compareTo(org.starhope.appius.types.AbstractZone)
public void destroy()
destroy
in interface AbstractZone
AbstractZone.destroy()
public void destroyRoom(AbstractRoom room)
destroyRoom
in interface AbstractZone
room
- WRITEMEAbstractZone.destroyRoom(org.starhope.appius.game.AbstractRoom)
public Collection<Integer> getAllUsersIDsInZone()
getAllUsersIDsInZone
in interface AbstractZone
AbstractZone.getAllUsersIDsInZone()
public Collection<AbstractUser> getAllUsersInZone()
getAllUsersInZone
in interface AbstractZone
AbstractZone.getAllUsersInZone()
public String getHost()
getHost
in interface AbstractZone
AbstractZone.getHost()
public int getMaxUsers()
getMaxUsers
in interface AbstractZone
AbstractZone.getMaxUsers()
public String getName()
getName
in interface AbstractZone
AbstractZone.getName()
public AbstractRoom getNextLobby()
getNextLobby
in interface AbstractZone
AbstractZone.getNextLobby()
public int getPort()
getPort
in interface AbstractZone
AbstractZone.getPort()
public AbstractRoom getRoom(Integer room)
getRoom
in interface AbstractZone
room
- WRITEME
AbstractZone.getRoom(java.lang.Integer)
public AbstractRoom getRoomByName(String string)
getRoomByName
in interface AbstractZone
string
- WRITEME
AbstractZone.getRoomByName(java.lang.String)
public Collection<AbstractRoom> getRoomList()
getRoomList
in interface AbstractZone
AbstractZone.getRoomList()
public String getRoomListSFSXML()
getRoomListSFSXML
in interface AbstractZone
AbstractZone.getRoomListSFSXML()
public int getRoomMaxUsers()
getRoomMaxUsers
in interface AbstractZone
AbstractZone.getRoomMaxUsers()
public String getURL()
getURL
in interface AbstractZone
AbstractZone.getURL()
public AbstractUser getUserByName(String buddy)
getUserByName
in interface AbstractZone
buddy
- WRITEME
AbstractZone.getUserByName(java.lang.String)
public AbstractRoom getUserRoom(AbstractUser user)
getUserRoom
in interface AbstractZone
user
- 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 AbstractZone
user
- 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 AbstractZone
AbstractZone.getZoneList_JSON(org.starhope.appius.user.AbstractUser)
public void handleSpeak(int roomNumber, AbstractUser user, String speech)
handleSpeak
in interface AbstractZone
roomNumber
- 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 AbstractZone
AbstractZone.init()
public void remove(AbstractUser user)
remove
in interface AbstractZone
user
- WRITEMEAbstractZone.remove(AbstractUser)
public void retire()
retire
in interface AbstractZone
AbstractZone.retire()
public void set(org.json.JSONObject o)
o
- WRITEMECastsToJSON.set(org.json.JSONObject)
public void setAutoJoinRoom(int id)
setAutoJoinRoom
in interface AbstractZone
id
- WRITEMEAbstractZone.setAutoJoinRoom(int)
public void setBadge(String string, AbstractRoom room)
setBadge
in interface AbstractZone
AbstractZone.setBadge(java.lang.String,
org.starhope.appius.game.AbstractRoom)
public String spawnNewZone()
spawnNewZone
in interface AbstractZone
AbstractZone.spawnNewZone()
public void spawnZone(String newZone)
spawnZone
in interface AbstractZone
AbstractZone.spawnZone(java.lang.String)
public void tellEaves(AbstractUser user, AbstractRoom room, String verb, String note)
tellEaves
in interface AbstractZone
user
- 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 AbstractZone
string
- WRITEMEAbstractZone.trace(java.lang.String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |