Package marauroa.common.game

Examples of marauroa.common.game.RPClass


 
  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.ATTACK);
    rpclass.addAttribute(HIT_ATTR, Type.FLAG);
    rpclass.addAttribute(DAMAGE_ATTR, Type.INT);
    rpclass.addAttribute(DAMAGE_TYPE_ATTR, Type.INT);
  }
View Full Code Here


  /**
   * generates the RP class
   */
  public static void generateRPClass() {
    final RPClass entity = new RPClass("game_board");
    entity.isA("entity");
    entity.addAttribute("class", Type.STRING);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    try {
    final RPClass rpclass = new RPClass(RPCLASS_NAME);
    rpclass.add(DefinitionClass.ATTRIBUTE, PATH, Type.STRING, Definition.PRIVATE);
    rpclass.add(DefinitionClass.ATTRIBUTE, CAPTION, Type.STRING, Definition.PRIVATE);
    rpclass.add(DefinitionClass.ATTRIBUTE, TITLE, Type.STRING, Definition.PRIVATE);
    } catch (final SyntaxException e) {
      logger.error("cannot generateRPClass", e);
    }
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    try {
      final RPClass rpclass = new RPClass(RPCLASS_NAME);
      rpclass.add(DefinitionClass.ATTRIBUTE, TITLE, Type.STRING, Definition.PRIVATE);
      rpclass.add(DefinitionClass.ATTRIBUTE, CAPTION, Type.STRING, Definition.PRIVATE);
      rpclass.addRPSlot(CONTENT_SLOT, 999);
    } catch (final SyntaxException e) {
      logger.error("cannot generateRPClass", e);
    }
  }
View Full Code Here

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

    setResistance(100);
  }


  public static void generateRPClass() {
    final RPClass blocker = new RPClass("walkblocker");
    blocker.isA("area");
    blocker.addAttribute("class", Type.STRING);
  }
View Full Code Here

  }


  public static void generateRPClass() {
    try {
      final RPClass npc = new RPClass("creature");
      npc.isA("npc");
      npc.addAttribute("debug", Type.VERY_LONG_STRING,
          Definition.VOLATILE);
      npc.addAttribute("metamorphosis", Type.STRING, Definition.VOLATILE);
    } catch (final SyntaxException e) {
      LOGGER.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

    super.setAttackStrategy(aiProfiles);
  }

  public static void generateRPClass() {
    try {
      final RPClass sheep = new RPClass("sheep");
      sheep.isA("creature");
      sheep.addAttribute("weight", Type.BYTE);
    } catch (final SyntaxException e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

    SingletonRepository.getTurnNotifier().dontNotify(itemForRewardsReleaser);
    super.onRemoved(zone);
  }

  public static void generateRPClass() {
    final RPClass entity = new RPClass("corpse");
    entity.isA("entity");
    entity.addAttribute("class", Type.STRING);
    entity.addAttribute("stage", Type.BYTE);

    entity.addAttribute(ATTR_NAME, Type.STRING);
    entity.addAttribute(ATTR_KILLER, Type.STRING);
    entity.addAttribute(ATTR_IMAGE, Type.STRING);
    entity.addAttribute(ATTR_CORPSE_OWNER, Type.STRING);

    entity.addRPSlot("content", 4);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.TRADE_STATE_CHANGE);
    rpclass.add(DefinitionClass.ATTRIBUTE, "partner_id", Type.INT);
    rpclass.add(DefinitionClass.ATTRIBUTE, "user_trade_state", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "partner_trade_state", Type.STRING);
  }
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.