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

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

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 shapes with an area
*
* @author hendrik
*/
public abstract class FilledShape extends Entity {

  /**
   * creates a new FilledShape
   *
   * @param object RPObject
   */
  public FilledShape(RPObject object) {
    super(object);
  }
 
  /**
   * creates a new FilledShape
   */
  public FilledShape() {
    // empty
  }


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

    shape.addAttribute("fill_color", Type.INT);
  }
}
TOP

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

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.