MockStendlRPWorld.java :  » Game » Arianne-RPG-0.83 » games » stendhal » server » maps » Java Open Source

Java Open Source » Game » Arianne RPG 0.83 
Arianne RPG 0.83 » games » stendhal » server » maps » MockStendlRPWorld.java
/**
 *
 */
package games.stendhal.server.maps;

import games.stendhal.server.core.engine.RPClassGenerator;
import games.stendhal.server.core.engine.StendhalRPWorld;
import marauroa.common.game.RPObject;

public class MockStendlRPWorld extends StendhalRPWorld {

  @Override
  public void modify(final RPObject object) {
  }

  
  
  protected void createRPClasses() {
    
    new RPClassGenerator().createRPClasses();
  }
  
  public static StendhalRPWorld get() {
    if (!(instance instanceof MockStendlRPWorld)) {
      instance = new MockStendlRPWorld();
      ((MockStendlRPWorld) instance).createRPClasses();
    }
    return instance;
  }

  
  
  @Override
  protected void initialize() {

  }
  
  public static void  reset() {
    instance = null;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.