|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし すべてのクラス | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectsystem.Field
public final class Field
タワーを設置するフィールドのクラスです。 フィールドの座標は左上が(0, 0)となります。
コンストラクタの概要 | |
---|---|
Field(int width,
int height,
int seed)
コンストラクタ |
メソッドの概要 | |
---|---|
FieldState |
getFieldStateAt(FieldPoint fieldPoint)
指定された座標位置のフィールドの状態を取得します。 |
FieldState |
getFieldStateAt(int x,
int y)
指定された座標位置のフィールドの状態を取得します。 |
int |
getHeight()
フィールドの高さを取得します。 |
TowerType |
getTowerTypeAt(FieldPoint fieldPoint)
指定された座標位置のタワーの種類を取得します。 |
TowerType |
getTowerTypeAt(int x,
int y)
指定された座標位置のタワーの種類を取得します。 |
int |
getWidth()
フィールドの幅を取得します。 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Field(int width, int height, int seed)
width
- height
- seed
- メソッドの詳細 |
---|
public int getWidth()
public int getHeight()
public TowerType getTowerTypeAt(FieldPoint fieldPoint)
fieldPoint
-
public TowerType getTowerTypeAt(int x, int y)
x
- y
-
public FieldState getFieldStateAt(FieldPoint fieldPoint)
fieldPoint
-
public FieldState getFieldStateAt(int x, int y)
x
- y
-
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし すべてのクラス | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |