|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.starhope.appius.util.ManagedReferenceHolder
org.starhope.appius.sql.SQLPeerDatum
org.starhope.appius.game.Room
public class Room
WRITEME: The documentation for this type (Room) is incomplete. (brpocock, Aug 18, 2009)
Field Summary | |
---|---|
private String |
fairgroundsImage
|
private String |
fairgroundsLabel
|
private String |
fairgroundsWarp
|
private String |
filename
The base name of the room's SWF file. |
private String |
moniker
The SmartFox moniker / unique identifier for this room. |
private int |
movieTime
in seconds |
private String |
movieURL
|
private String |
music
The background music for the room |
private String |
nowPlaying
|
private String |
overlay
The SWF file to be displayed as a weather overlay. |
private String |
sky
The SWF file to be displayed as a sky background. |
private boolean |
skyVisible
Whether the sky is visible in this room. |
private String |
title
|
Constructor Summary | |
---|---|
|
Room()
nil constructor |
private |
Room(ResultSet rs)
|
|
Room(String moniker)
|
Method Summary | |
---|---|
void |
flush()
This is an overriding method. |
static Room[] |
getAllRooms()
|
static Room |
getByMoniker(String moniker)
|
protected String |
getCacheUniqueID()
This is an overriding method. |
private void |
getFairground()
WRITEME: document this method (brpocock, Aug 31, 2009) |
String |
getFilename()
|
String |
getMoniker()
|
private void |
getMovie()
WRITEME: document this method (brpocock, Aug 31, 2009) |
String |
getMusic()
|
String |
getOverlay()
|
String |
getSky()
|
String |
getTitle()
|
boolean |
isSkyVisible()
|
protected void |
set(ResultSet rs)
This is an overriding method. |
void |
setFilename(String filename)
|
void |
setMoniker(String moniker)
|
void |
setMusic(String music)
|
void |
setOverlay(String overlay)
|
void |
setRoomVars(Room r,
User u)
Sets the Smart Fox Server room variables used by the client. |
void |
setSky(String sky)
|
void |
setSkyVisible(boolean skyVisible)
|
void |
setTitle(String newTitle)
|
org.json.JSONObject |
toJSON()
This is an overriding method. |
Methods inherited from class org.starhope.appius.sql.SQLPeerDatum |
---|
changed, findInCache, get, prepare, prepare, saveInCache, set |
Methods inherited from class org.starhope.appius.util.ManagedReferenceHolder |
---|
deref, setRef |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String fairgroundsImage
private String fairgroundsLabel
private String fairgroundsWarp
private String filename
private String moniker
private int movieTime
private String movieURL
private String music
private String nowPlaying
private String overlay
private String sky
private boolean skyVisible
private String title
Constructor Detail |
---|
public Room()
private Room(ResultSet rs) throws SQLException
rs
-
SQLException
public Room(String moniker) throws NotFoundException
moniker
- The moniker of the room to be instantiated
NotFoundException
- if there is no room in the database
with the given monikerMethod Detail |
---|
public static Room[] getAllRooms()
public static Room getByMoniker(String moniker)
moniker
- the moniker value for this room
public void flush()
flush
in class SQLPeerDatum
SQLPeerDatum.flush()
protected String getCacheUniqueID()
getCacheUniqueID
in class SQLPeerDatum
SQLPeerDatum.getCacheUniqueID()
private void getFairground() throws SQLException
SQLException
public String getFilename()
public String getMoniker()
private void getMovie() throws SQLException
SQLException
public String getMusic()
public String getOverlay()
public String getSky()
public String getTitle()
public boolean isSkyVisible()
protected void set(ResultSet rs) throws SQLException
set
in class SQLPeerDatum
SQLException
- if the database fails somehowSQLPeerDatum.set(java.sql.ResultSet)
public void setFilename(String filename)
filename
- the filename to setpublic void setMoniker(String moniker)
moniker
- the moniker to setpublic void setMusic(String music)
music
- the new background musicpublic void setOverlay(String overlay)
overlay
- the overlay to setpublic void setRoomVars(Room r, User u) throws SQLException
Sets the Smart Fox Server room variables used by the client.
... All URL:s are relative to their respective root paths, as managed by the client
r
- The Smart Fox Server room objectu
- The Smart Fox Server system user account, which will
take ownership of the room variables.
SQLException
public void setSky(String sky)
sky
- the sky to setpublic void setSkyVisible(boolean skyVisible)
skyVisible
- the skyVisible to setpublic void setTitle(String newTitle)
public org.json.JSONObject toJSON()
toJSON
in class SQLPeerDatum
SQLPeerDatum.toJSON()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |