Examples of RPClass


Examples of marauroa.common.game.RPClass

   */
  private int movementRange = 20;

  public static void generateRPClass() {
    try {
      final RPClass npc = new RPClass("npc");
      npc.isA("rpentity");
      npc.addAttribute("class", Type.STRING);
      npc.addAttribute("subclass", Type.STRING);
      //npc.addAttribute("text", Type.LONG_STRING, Definition.VOLATILE);
      npc.addRPEvent("text", Definition.VOLATILE);
      npc.addAttribute("idea", Type.STRING, Definition.VOLATILE);
      npc.addAttribute("outfit", Type.INT);
    } catch (final SyntaxException e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

    update();
  }

  public static void generateRPClass() {
    if (!RPClass.hasRPClass(CHEST_RPCLASS_NAME)) {
      final RPClass chest = new RPClass(CHEST_RPCLASS_NAME);
      chest.isA("entity");
      chest.addAttribute("open", Type.FLAG);
      chest.addRPSlot("content", 30);
    }
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

    put("cursor", "ACTIVITY");
    super.setSize(1, 1);
  }

  public static void generateRPClass() {
    final RPClass rpclass = new RPClass("useable_entity");
    rpclass.isA("entity");
   
    // class: source/switch
    rpclass.addAttribute("class", Type.STRING);

    // subclass: long sword/leather/armor/...
    rpclass.addAttribute("subclass", Type.STRING);

    // name of item: gold_source
    rpclass.addAttribute("name", Type.STRING);

    // menu (Make a wish,use)
    rpclass.addAttribute("menu", Type.STRING);

    // state (row in sprite image)
    rpclass.addAttribute("state", Type.INT);
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

  }

  public static void generateRPClass() {
    try {
      final RPClass baby_dragon = new RPClass("baby_dragon");
      baby_dragon.isA("pet");
      // baby_dragon.add("weight", Type.BYTE);
      // baby_dragon.add("eat", Type.FLAG);
    } catch (final SyntaxException e) {
      logger.error("cannot generate RPClass", e);
    }
View Full Code Here

Examples of marauroa.common.game.RPClass

    damageType = item.damageType;
    susceptibilities = item.susceptibilities;
  }

  public static void generateRPClass() {
    final RPClass entity = new RPClass("item");
    entity.isA("entity");

    // class, sword/armor/...
    entity.addAttribute("class", Type.STRING);

    // subclass, long sword/leather/armor/...
    entity.addAttribute("subclass", Type.STRING);

    // name of item (ie 'Kings Sword')
    entity.addAttribute("name", Type.STRING);

    // Some items have attack values
    entity.addAttribute("atk", Type.SHORT, Definition.HIDDEN);

    // Some items indicate how often you can attack.
    entity.addAttribute("rate", Type.SHORT, Definition.HIDDEN);

    // Some items have defense values
    entity.addAttribute("def", Type.SHORT, Definition.HIDDEN);
   
    //Some items can be damaged in combat or during use. This rises the degree of deterioration
    entity.addAttribute("deterioration", Type.INT, (byte) (Definition.HIDDEN | Definition.VOLATILE));

    // Some items(food) have amount of something
    // (a bottle, a piece of meat).
    entity.addAttribute("amount", Type.INT);

    // Some items (range weapons, ammunition, missiles)
    // have a range.
    entity.addAttribute("range", Type.SHORT, Definition.HIDDEN);

    // Some items(food) have regeneration
    entity.addAttribute("regen", Type.INT, Definition.HIDDEN);

    // Some items(food) have regeneration speed
    entity.addAttribute("frequency", Type.INT, Definition.HIDDEN);

    // Some items(Stackable) have quantity
    entity.addAttribute("quantity", Type.INT);

    // Some items (Stackable) have maximum quantity
    entity.addAttribute("max_quantity", Type.INT, Definition.HIDDEN);

    // Some items have minimum level to prevent spoiling
    // the fun for new players
    entity.addAttribute("min_level", Type.INT, Definition.HIDDEN);

    // To store addAttributeitional info with an item
    entity.addAttribute("infostring", Type.STRING, Definition.HIDDEN);

    // Some items have individual values
    entity.addAttribute("persistent", Type.SHORT, Definition.HIDDEN);

    // Some items have lifesteal values
    entity.addAttribute("lifesteal", Type.FLOAT, Definition.HIDDEN);

    // Some items are quest rewards that other players
    // don't deserve.
    entity.addAttribute("bound", Type.STRING, Definition.HIDDEN);

    // Some items should not be dropped on death
    entity.addAttribute("undroppableondeath", Type.SHORT, Definition.HIDDEN);

    // Unique database ID for logging
    entity.addAttribute("logid", Type.INT, Definition.HIDDEN);

    // Name of the container slot, if the item has one
    entity.addAttribute("slot_name", Type.STRING, (byte) (Definition.HIDDEN | Definition.VOLATILE));
   
    // Container slot
    entity.addRPSlot("content", 8, Definition.PRIVATE);
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

   * Whether or not the door is currently open.
   */
  private boolean open;

  public static void generateRPClass() {
    final RPClass door = new RPClass("door");
    door.isA("entity");
    door.addAttribute("class", Type.STRING);
    door.addAttribute("locked", Type.STRING, Definition.HIDDEN);
    door.addAttribute("open", Type.FLAG);
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

  //
  // GoldSource
  //

  public static void generateRPClass() {
    final RPClass rpclass = new RPClass("gold_source");
    rpclass.isA("entity");
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

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

Examples of marauroa.common.game.RPClass

 
  protected abstract List<String> getFoodNames();
 
  public static void generateRPClass() {
    try {
      final RPClass pet = new RPClass("pet");
      pet.isA("creature");
      pet.addAttribute("weight", Type.BYTE);
      pet.addAttribute("eat", Type.FLAG);
    } catch (final SyntaxException e) {
      LOGGER.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

Examples of marauroa.common.game.RPClass

  //
  // WellSource
  //

  public static void generateRPClass() {
    final RPClass rpclass = new RPClass("well_source");
    rpclass.isA("entity");
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.