Package marauroa.common.game

Examples of marauroa.common.game.RPClass


    setHP(HP);
  }

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


  private Object destinationReference;

  public static void generateRPClass() {
    try {
        if (!RPClass.hasRPClass(RPCLASS_NAME)){
          final RPClass portal = new RPClass(RPCLASS_NAME);
          portal.isA("entity");
          portal.addAttribute(ATTR_USE, Type.FLAG);
          portal.addAttribute(ATTR_HIDDEN, Type.FLAG);
        }
    } catch (final SyntaxException e) {
      logger.error("cannot generate RPClass", e);
    }
  }
View Full Code Here

   * Define the RPClass.
   *
   * @return The configured RPClass.
   */
  private static RPClass createRPClass() {
    final RPClass rpclass = new RPClass("area");

    // MAYBEDO: rpclass.isA(Entity.RPCLASS)
    rpclass.isA("entity");
    rpclass.addAttribute(ATTR_NAME, Type.STRING);

    return rpclass;
  }
View Full Code Here

 
  private static final String DEFAULT_IMAGE = "fence_gate";

  public static void generateGateRPClass() {
    if (!RPClass.hasRPClass("gate")) {
      final RPClass gate = new RPClass("gate");
      gate.isA("entity");
      gate.addAttribute(ORIENTATION, Type.STRING);
      gate.addAttribute(IMAGE, Type.STRING);
    }
  }
View Full Code Here

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

public class ViewChangeEvent extends RPEvent {
  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.VIEW_CHANGE);
    rpclass.addAttribute("x", Type.INT);
    rpclass.addAttribute("y", Type.INT);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.GROUP_INVITE);
    rpclass.add(DefinitionClass.ATTRIBUTE, "leader", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "expire", Type.FLAG);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.PRIVATE_TEXT);
    rpclass.add(DefinitionClass.ATTRIBUTE, TEXT_TYPE, Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, CHANNEL, Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, TEXT, Type.LONG_STRING);
  }
View Full Code Here

  /**
   * Creates the rpclass.
   */
  public static void generateRPClass() {
    final RPClass rpclass = new RPClass(Events.GROUP_CHANGE);
    rpclass.add(DefinitionClass.ATTRIBUTE, "leader", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "members", Type.STRING);
    rpclass.add(DefinitionClass.ATTRIBUTE, "lootmode", Type.STRING);
  }
View Full Code Here

    if (args.size() < 1) {
      admin.sendPrivateText("Usage: /script EventTest.class {some-text}");
      return;
    }

    final RPClass rpclass = new RPClass("testevent");
    rpclass.add(DefinitionClass.RPEVENT, "testevent", Definition.STANDARD);

    final RPEvent event = new RPEvent("testevent");
    event.put("arg", args.get(0));
    admin.addEvent(event);
  }
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.