org.vrspace.server.object
Class Boardgame
java.lang.Object
java.util.Observable
org.vrspace.server.VRObject
org.vrspace.server.DBObject
org.vrspace.server.PublicDBObject
org.vrspace.server.OwnedDBObject
org.vrspace.server.object.File
org.vrspace.server.object.VrmlFile
org.vrspace.server.object.Boardgame
- All Implemented Interfaces:
- java.lang.Cloneable, HasTransform, java.util.Observer, Owned
- public class Boardgame
- extends VrmlFile
Fields inherited from class org.vrspace.server.DBObject |
db |
Method Summary |
void |
sendEvent(Request req)
Overrides OwnedDBObject.sendEvent(). |
void |
verifyEvent(Request req)
Verifies that the request was meant to be received by a VRObject of
this class and with this database id. |
Methods inherited from class org.vrspace.server.VRObject |
arrayToString, canRead, canWrite, clone, equals, fieldToText, fromString, fromText, getClassName, getField, getFields, getId, getID, getMemebers, hasField, hasMethod, isNew, newInstance, sendResponse, setField, setField, setField, setFields, setFields, stringToArray, toString, toText, toText, toText |
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
gameManagerId
public long gameManagerId
gameManagerClass
public java.lang.String gameManagerClass
state
public int[] state
players
public java.lang.String[] players
gameStarted
public boolean gameStarted
Boardgame
public Boardgame()
verifyEvent
public void verifyEvent(Request req)
throws RequestException
- Verifies that the request was meant to be received by a VRObject of
this class and with this database id. A RequestException is thrown if this
is not verified.
- Throws:
RequestException
sendEvent
public void sendEvent(Request req)
throws RequestException
- Overrides OwnedDBObject.sendEvent().
This method calls super.sendEvent() and if a RequestException is not thrown, the method exits.
Otherwise the method calls setChanged() and then setValue(). In effect, this
implements all the functionality of its ancestors, but if the event corresponds
to an unknown field or method, simply forwards it to all observers.
- Overrides:
sendEvent
in class File
- Throws:
RequestException