|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ac.washi.quinte.api.PathSearch
public class PathSearch
到達可能な経路探索を行うためのメソッドを提供します。
メソッドの概要 | |
---|---|
static Direction[] |
getNowReachablePath(MapInfo map,
Point from,
Point to,
CountryInfo myCountry)
現時点で兵士が移動できるタイル(ゲート、もしくは所有している道)のみで構成される到達経路で、 指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
static Direction[] |
getNowReachablePath(MapInfo map,
Point from,
Point to,
CountryInfo myCountry,
Direction[] directions)
指定された方向だけの現時点で兵士が移動できるタイル(ゲート、もしくは所有している道)のみで構成される到達経路で、 指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to)
推奨されていません。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to,
CountryInfo myCountry)
推奨されていません。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to,
CountryInfo myCountry,
Direction[] directions)
推奨されていません。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to,
Direction[] directions)
推奨されていません。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to,
Direction[] directions,
MovableChecker movableChecker)
指定された方向だけで、指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
static Direction[] |
getPath(MapInfo map,
Point from,
Point to,
MovableChecker movableChecker)
指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
static Direction[] |
getReachablePath(MapInfo map,
Point from,
Point to)
所有国を考慮せずに兵士が移動可能なタイル(ゲート、もしくは道)のみで構成される到達経路で、 指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
static Direction[] |
getReachablePath(MapInfo map,
Point from,
Point to,
Direction[] directions)
指定された方向だけの所有国を考慮せずに兵士が移動可能なタイル(ゲート、もしくは道)のみで構成される到達経路で、 指定された開始位置から指定された目的地まで到達するための移動手順の配列を返します。 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
メソッドの詳細 |
---|
public static Direction[] getNowReachablePath(MapInfo map, Point from, Point to, CountryInfo myCountry)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標myCountry
- 指定する国
public static Direction[] getNowReachablePath(MapInfo map, Point from, Point to, CountryInfo myCountry, Direction[] directions)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標myCountry
- 指定する国directions
- 移動手順で利用可能な方向の集合
@Deprecated public static Direction[] getPath(MapInfo map, Point from, Point to)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標
@Deprecated public static Direction[] getPath(MapInfo map, Point from, Point to, CountryInfo myCountry)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標myCountry
- 指定する国
@Deprecated public static Direction[] getPath(MapInfo map, Point from, Point to, CountryInfo myCountry, Direction[] directions)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標myCountry
- 指定する国directions
- 移動手順で利用可能な方向の集合
@Deprecated public static Direction[] getPath(MapInfo map, Point from, Point to, Direction[] directions)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標directions
- 移動手順で利用可能な方向の集合
public static Direction[] getPath(MapInfo map, Point from, Point to, Direction[] directions, MovableChecker movableChecker)
map
- マップの情報を持つMapInfofrom
- 開始位置の座標to
- 目的地の座標directions
- 到達経路に使用するDirectionの配列movableChecker
- 到達経路に含めるタイルを指定するmovableChecker
public static Direction[] getPath(MapInfo map, Point from, Point to, MovableChecker movableChecker)
map
- マップの情報を持つMapInfofrom
- 開始位置の座標to
- 目的地の座標movableChecker
- 到達経路に含めるタイルを指定するmovableChecker
public static Direction[] getReachablePath(MapInfo map, Point from, Point to)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標
public static Direction[] getReachablePath(MapInfo map, Point from, Point to, Direction[] directions)
map
- マップfrom
- 開始位置の座標to
- 目的地の座標directions
- 移動手順で利用可能な方向の集合
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |