Class WorldFactory

java.lang.Object
org.vrspace.server.core.WorldFactory

public class WorldFactory extends Object
Class responsible for world creation
Author:
joe
  • Constructor Details

    • WorldFactory

      public WorldFactory(WorldManager worldManager)
  • Method Details

    • createWorlds

      public void createWorlds()
      Create all worlds defined in properties file, default world is created first.
    • defaultWorld

      public World defaultWorld()
      Get the default world. It is created if does not exist already.
      Returns:
    • createWorld

      protected World createWorld(String name)
      Used to create worlds on demand. Synchronized to prevent race conditions.
      Parameters:
      name - world name
      Returns:
      new or existing world