|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface MapInfo
このインタフェースはMapに関する情報を提供します。
メソッドの概要 | |
---|---|
boolean |
canRotate(int x,
int y)
指定されたタイルが回転できるかを判別します。 |
boolean |
canRotate(Point location)
指定されたタイルが回転できるかを判別します。 |
Point |
getCenterGateLocation(CountryInfo country)
指定した国の大ゲートの位置を返します。 |
CursorInfo |
getCursor(CountryInfo country)
指定した国のカーソル情報を持つCursorInfoを返します。 |
Point |
getLeftGateLocation(CountryInfo country)
指定した国の左小ゲートの位置を返します。 |
Point |
getRightGateLocation(CountryInfo country)
指定した国の右小ゲートの位置を返します。 |
int |
getSize()
このマップの一辺のタイル数を返します。 |
SoldierInfo |
getSoldier(CountryInfo country)
指定した国の兵士の情報を持つSoldierInfoを返します。 |
TileInfo |
getTile(int x,
int y)
指定された座標のTileInfoを返します。 |
TileInfo |
getTile(Point location)
指定された座標のTileInfoを返します。 |
CountryInfo |
getTileOwner(int x,
int y)
指定した座標上のtileが持つCountryInfoを返します。 |
CountryInfo |
getTileOwner(Point location)
指定した座標上のtileが持つCountryInfoを返します。 |
boolean |
isAllOwnedInCursor(int x,
int y)
指定した座標に位置するカーソル内の回転可能なタイルのうち,全てのタイル所有しているかどうか返します. |
boolean |
isAllOwnedInCursor(Point location)
指定した座標に位置するカーソル内の回転可能なタイルのうち,全てのタイル所有しているかどうか返します. |
boolean |
isAvailable(int x,
int y)
指定された座標がマップにおいて有効か判定します。 |
boolean |
isAvailable(Point location)
指定された座標がマップにおいて有効か判定します。 |
boolean |
isOwned(int x,
int y)
指定した座標のタイルを所有しているかどうかを返します. |
boolean |
isOwned(Point location)
指定した座標のタイルを所有しているかどうかを返します. |
メソッドの詳細 |
---|
boolean canRotate(int x, int y)
x
- 指定タイルのx座標y
- 指定タイルのy座標
boolean canRotate(Point location)
location
- 指定タイルのPoint
Point getCenterGateLocation(CountryInfo country)
country
- 対象となる国のCountryInfo
CursorInfo getCursor(CountryInfo country)
country
- 対象となる国のCountryInfo
Point getLeftGateLocation(CountryInfo country)
country
- 対象となる国のCountryInfo
Point getRightGateLocation(CountryInfo country)
country
- 対象となる国のCountryInfo
int getSize()
SoldierInfo getSoldier(CountryInfo country)
country
- 対象となる国のCountryInfo
TileInfo getTile(int x, int y)
x
- x座標y
- y座標
TileInfo getTile(Point location)
location
- 目的の座標のPoint
CountryInfo getTileOwner(int x, int y)
x
- 対象となるtileのx座標y
- 対象となるtileのy座標
CountryInfo getTileOwner(Point location)
location
- 対象となるtileの位置を示すPoint型
boolean isAvailable(int x, int y)
x
- x座標y
- y座標
boolean isAvailable(Point location)
location
- 目的の座標のPoint
boolean isOwned(int x, int y)
x
- 指定するタイルのx座標y
- 指定するタイルのy座標
boolean isOwned(Point location)
location
- 指定するタイルの座標
boolean isAllOwnedInCursor(int x, int y)
x
- 指定するカーソルのx座標y
- 指定するカーソルのy座標
boolean isAllOwnedInCursor(Point location)
location
- 指定するカーソルの座標
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |