Package net.sf.arianne.marboard.server.entity.shape

Source Code of net.sf.arianne.marboard.server.entity.shape.Shape

package net.sf.arianne.marboard.server.entity.shape;

import marauroa.common.game.RPClass;
import marauroa.common.game.RPObject;
import marauroa.common.game.Definition.Type;
import net.sf.arianne.marboard.server.entity.Entity;

/**
* abstract base class for all visible shapes
*
* @author hendrik
*/
public abstract class Shape extends Entity {
  /**
   * creates a Shape
   *
   * @param object RPObject
   */
  public Shape(RPObject object) {
    super(object);
  }
 
  /**
   * creates a Shape
   */
  public Shape() {
    // empty
  }


  /**
   * generates the class definition for marauroa.
   */
  public static void generateRPClass() {
    final RPClass shape = new RPClass("shape");
    shape.isA("entity");

    shape.addAttribute("thickness", Type.INT);
    shape.addAttribute("color", Type.INT);
    shape.addAttribute("x", Type.INT);
    shape.addAttribute("y", Type.INT);
    shape.addAttribute("z", Type.INT);
  }
}
TOP

Related Classes of net.sf.arianne.marboard.server.entity.shape.Shape

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.