jp.ac.washi.quinte.api
クラス CursorAction

java.lang.Object
  上位を拡張 jp.ac.washi.quinte.api.CursorAction

public class CursorAction
extends java.lang.Object

プレイヤーがカーソルに出す命令を表します。


コンストラクタの概要
CursorAction(RotateType type, int x, int y)
          指定された回転方向と(x, y)座標を持つカーソルアクションを構築します。
CursorAction(RotateType type, Point location)
          指定された回転方向とPointを持つカーソルアクションを構築します。
 
メソッドの概要
 Point getLocation()
          このカーソルアクションが示すPointを返します。
 RotateType getType()
          このカーソルアクションが示す回転方向を返します。
 int getX()
          このカーソルアクションが示すx座標を返します。
 int getY()
          このカーソルアクションが示すy座標を返します。
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CursorAction

public CursorAction(RotateType type,
                    int x,
                    int y)
指定された回転方向と(x, y)座標を持つカーソルアクションを構築します。

パラメータ:
type - 回転方向
x - 回転させる位置のx座標
y - 回転させる位置のy座標

CursorAction

public CursorAction(RotateType type,
                    Point location)
指定された回転方向とPointを持つカーソルアクションを構築します。

パラメータ:
type - 回転方向
location - 回転させる位置を示すPoint
メソッドの詳細

getLocation

public Point getLocation()
このカーソルアクションが示すPointを返します。

戻り値:
このカーソルアクションが示すPoint

getType

public RotateType getType()
このカーソルアクションが示す回転方向を返します。

戻り値:
このカーソルアクションが示す回転方向

getX

public int getX()
このカーソルアクションが示すx座標を返します。

戻り値:
このカーソルアクションが示すx座標

getY

public int getY()
このカーソルアクションが示すy座標を返します。

戻り値:
このカーソルアクションが示すy座標