Package org.vrspace.server.obj
Class ServerWorld
java.lang.Object
org.vrspace.server.obj.Entity
org.vrspace.server.obj.World
org.vrspace.server.obj.ServerWorld
World in which all servers reside, created by WorldManager on startup. Once a
RemoteServer enters here, its properties are set to defaults defined in
application.properties, i.e portalMesh and portalScript of this object.
Properties of other clients (users) are not changed.
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanenter(Client client, WorldManager wm) Called when client enters the world.booleanvoidexit(Client client, WorldManager wm) Called after client exits the world.doublegetDl()doublegetK()getUrl()inthashCode()voidsetCurrentServers(ConcurrentHashMap<String, RemoteServer> currentServers) voidsetDl(double dl) voidsetK(double k) voidsetPortalMesh(String portalMesh) voidsetPortalScript(String portalScript) voidsetPortalThumbnail(String portalThumbnail) voidsetServerCount(AtomicInteger serverCount) voidtoString()Methods inherited from class org.vrspace.server.obj.World
getName, getOwner, getToken, isDefaultWorld, isPublicWorld, isTemporaryWorld, setDefaultWorld, setName, setOwner, setPublicWorld, setTemporaryWorld, setToken, tokenNameMethods inherited from class org.vrspace.server.obj.Entity
dispose, getId, getObjectId, setId
-
Constructor Details
-
ServerWorld
public ServerWorld()
-
-
Method Details
-
enter
Description copied from class:WorldCalled when client enters the world. It may change some client properties, allow entrance or not, etc. This implementation checks whether the world is private and owned, and compares the session token. -
exit
Description copied from class:WorldCalled after client exits the world. After the owner (if any) exits the world, invalidates the token (if any). -
getUrl
-
getPortalMesh
-
getPortalThumbnail
-
getPortalScript
-
getCurrentServers
-
getServerCount
-
getDl
public double getDl() -
getK
public double getK() -
setUrl
-
setPortalMesh
-
setPortalThumbnail
-
setPortalScript
-
setCurrentServers
-
setServerCount
-
setDl
public void setDl(double dl) -
setK
public void setK(double k) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-