Package org.vrspace.server.core
Class WorldFactory
java.lang.Object
org.vrspace.server.core.WorldFactory
Class responsible for world creation
- Author:
- joe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected WorldcreateWorld(String name) Used to create worlds on demand.voidCreate all worlds defined in properties file, default world is created first.Get the default world.
-
Constructor Details
-
WorldFactory
-
-
Method Details
-
createWorlds
public void createWorlds()Create all worlds defined in properties file, default world is created first. -
defaultWorld
Get the default world. It is created if does not exist already.- Returns:
-
createWorld
Used to create worlds on demand. Synchronized to prevent race conditions.- Parameters:
name- world name- Returns:
- new or existing world
-