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

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

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

import marauroa.common.game.RPClass;
import marauroa.common.game.RPObject;

/**
* a dot
*
* @author hendrik
*/
public class Dot extends Shape {

  /**
   * creates a Dot
   *
   * @param object RPObject
   */
  public Dot(RPObject object) {
    super(object);
  }

  /**
   * creates a Dot
   *
   * @param color color
   * @param thickness thickness
   * @param x x
   * @param y y
   * @param z z-index
   */
  public Dot(int color, int thickness, int x, int y, int z) {
    this(color, thickness, x, y);
    put("z", z);
  }

  /**
   * creates a Dot
   *
   * @param color color
   * @param thickness thickness
   * @param x x
   * @param y y
   */
  public Dot(int color, int thickness, int x, int y) {
    setRPClass("dot");
    put("color", color);
    put("thickness", thickness);
    put("x", x);
    put("y", y);
  }

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

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

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.