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
-
@Node public class ServerWorld extends World
World in which all servers reside. 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 Constructor Description ServerWorld()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
enter(Client client, WorldManager wm)
Called when client enters the world.boolean
equals(Object o)
void
exit(Client client, WorldManager wm)
Called after client exits the worldConcurrentHashMap<Long,RemoteServer>
getCurrentServers()
double
getDl()
double
getK()
String
getPortalMesh()
String
getPortalScript()
String
getPortalThumbnail()
AtomicInteger
getServerCount()
String
getUrl()
int
hashCode()
void
setCurrentServers(ConcurrentHashMap<Long,RemoteServer> currentServers)
void
setDl(double dl)
void
setK(double k)
void
setPortalMesh(String portalMesh)
void
setPortalScript(String portalScript)
void
setPortalThumbnail(String portalThumbnail)
void
setServerCount(AtomicInteger serverCount)
void
setUrl(String url)
String
toString()
-
Methods inherited from class org.vrspace.server.obj.World
getName, isDefaultWorld, setDefaultWorld, setName
-
-
-
-
Method Detail
-
enter
public boolean enter(Client client, WorldManager wm)
Description copied from class:World
Called when client enters the world. It may change some client properties, allow entrance or not, etc.
-
exit
public void exit(Client client, WorldManager wm)
Description copied from class:World
Called after client exits the world
-
getUrl
public String getUrl()
-
getPortalMesh
public String getPortalMesh()
-
getPortalThumbnail
public String getPortalThumbnail()
-
getPortalScript
public String getPortalScript()
-
getCurrentServers
public ConcurrentHashMap<Long,RemoteServer> getCurrentServers()
-
getServerCount
public AtomicInteger getServerCount()
-
getDl
public double getDl()
-
getK
public double getK()
-
setUrl
public void setUrl(String url)
-
setPortalMesh
public void setPortalMesh(String portalMesh)
-
setPortalThumbnail
public void setPortalThumbnail(String portalThumbnail)
-
setPortalScript
public void setPortalScript(String portalScript)
-
setCurrentServers
public void setCurrentServers(ConcurrentHashMap<Long,RemoteServer> currentServers)
-
setServerCount
public void setServerCount(AtomicInteger serverCount)
-
setDl
public void setDl(double dl)
-
setK
public void setK(double k)
-
-