Package org.vrspace.server.obj
Class World
- java.lang.Object
-
- org.vrspace.server.obj.Entity
-
- org.vrspace.server.obj.World
-
- Direct Known Subclasses:
ServerWorld
@Node public class World extends Entity
VRObject container, contains isolated parts of space, like chat room. One default world is created on startup, others are typically created on demand, after Enter command is issued.- Author:
- joe
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
enter(Client c, WorldManager wm)
Called when client enters the world.boolean
equals(Object o)
void
exit(Client c, WorldManager wm)
Called after client exits the world@NonNull String
getName()
int
hashCode()
boolean
isDefaultWorld()
void
setDefaultWorld(boolean defaultWorld)
void
setName(@NonNull String name)
String
toString()
-
-
-
Method Detail
-
enter
public boolean enter(Client c, WorldManager wm)
Called when client enters the world. It may change some client properties, allow entrance or not, etc.- Returns:
- true if client is allowed to enter
-
exit
public void exit(Client c, WorldManager wm)
Called after client exits the world- Parameters:
c
-wm
-
-
getName
@NonNull public @NonNull String getName()
-
isDefaultWorld
public boolean isDefaultWorld()
-
setName
public void setName(@NonNull @NonNull String name)
-
setDefaultWorld
public void setDefaultWorld(boolean defaultWorld)
-
-