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);
}
}