Package marauroa.common.game

Examples of marauroa.common.game.RPClass


   * Blood will disappear after so many seconds.
   */
  public static final int DEGRADATION_TIMEOUT = 10 * MathHelper.SECONDS_IN_ONE_MINUTE;

  public static void generateRPClass() {
    final RPClass blood = new RPClass("blood");
    blood.isA("entity");
    blood.addAttribute("class", Type.STRING);
    blood.addAttribute("amount", Type.BYTE);
  }
View Full Code Here


  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(RPCLASS_NAME);
    rpclass.add(DefinitionClass.ATTRIBUTE, NAME, Type.STRING);
  }
View Full Code Here

  private static final String NAME_ATTRIBUTE = "name";
  private static final Logger logger = Logger.getLogger(PlayerLoggedOutEvent.class);
 
  public static void generateRPClass() {
    try {
      RPClass clazz = new RPClass(Events.PLAYER_LOGGED_OUT);
      clazz.add(DefinitionClass.ATTRIBUTE, NAME_ATTRIBUTE, Type.STRING);
    } catch (Exception e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(RPCLASS_NAME);
    rpclass.add(DefinitionClass.ATTRIBUTE, NAME, Type.STRING);
  }
View Full Code Here

  private static final String NAME_ATTRIBUTE = "name";
  private static final Logger logger = Logger.getLogger(PlayerLoggedOnEvent.class);
 
  public static void generateRPClass() {
    try {
      RPClass clazz = new RPClass(Events.PLAYER_LOGGED_ON);
      clazz.add(DefinitionClass.ATTRIBUTE, NAME_ATTRIBUTE, Type.STRING);
    } catch (Exception e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(TRANSITION_GRAPH);
    rpclass.addAttribute(DATA, Type.LONG_STRING);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.SOUND);
    rpclass.add(DefinitionClass.ATTRIBUTE, "sound", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "radius", Type.INT);
    rpclass.add(DefinitionClass.ATTRIBUTE, "volume", Type.INT);
    rpclass.add(DefinitionClass.ATTRIBUTE, "layer", Type.BYTE);
  }
View Full Code Here

   * @throws FileNotFoundException in case the output folder is invalid
   */
  private void dumpAll() throws FileNotFoundException {
    Iterator<RPClass> itr = RPClass.iterator();
    while (itr.hasNext()) {
      RPClass rpclass = itr.next();
      dump(rpclass);
    }
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.PROGRESS_STATUS_CHANGE);
    rpclass.add(DefinitionClass.ATTRIBUTE, "progress_type", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "item", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "description", Type.VERY_LONG_STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "data", Type.VERY_LONG_STRING);
  }
View Full Code Here

 
  private static final Logger logger = Logger.getLogger(ReachedAchievementEvent.class);
 
  public static void generateRPClass() {
    try {
      RPClass clazz = new RPClass(Events.REACHED_ACHIEVEMENT);
      clazz.addAttribute("category", Type.STRING);
      clazz.addAttribute("title", Type.STRING);
      clazz.addAttribute("description", Type.STRING);
    } catch (Exception e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

TOP

Related Classes of marauroa.common.game.RPClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.