public class IgoGame extends Game
| コンストラクタと説明 |
|---|
IgoGame(GameApplet ga,
Board brd,
java.lang.String sPlyr1,
java.lang.String sPlyr2)
クラスGameのコンストラクタです。
|
IgoGame(IgoBoard brd)
クラスGameのコンストラクタです。
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
isMyEye(int iCol,
int iRow)
自分の眼かどうかを返します。
|
boolean |
isPass(int iCol,
int iRow)
Player.getNextMoveメソッドが返した値がパスかどうかを返します。
|
boolean |
isPass(Pos pos)
Player.getNextMoveメソッドが返した値がパスかどうかを返します。
|
boolean |
isPossibleMove(int iCol,
int iRow)
着手可能な手かどうかを返します。
|
boolean |
isResign(int iCol,
int iRow)
Player.getNextMoveメソッドが返した値が投了かどうかを返します。
|
boolean |
isResign(Pos pos)
Player.getNextMoveメソッドが返した値が投了かどうかを返します。
|
boolean |
isSuisideMove(int iCol,
int iRow)
自殺手かどうかを返します。
|
float |
judge()
ゲームの結果を判定します。
|
int |
removeStonesIfCaptured(IgoBoard brd)
四方の石が囲まれたら取り除き、コウが発生した場合は記録します。
|
void |
removeUnit(Unit unit)
推奨されていません。
|
void |
run()
ゲームスレッドを実行します。
|
getBoard, getPlayer1, getPlayer2, getPossibleMoves, getTurn, setPlayersactiveCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic IgoGame(GameApplet ga, Board brd, java.lang.String sPlyr1, java.lang.String sPlyr2)
ga - 関連付けるゲームアプリケーション(グラフィックス)を指定します。brd - 関連付けるゲームの盤を指定します。sPlyr1 - プレイヤー1を指定します。sPlyr2 - プレイヤー2を指定します。public IgoGame(IgoBoard brd)
brd - 関連付けるゲームの盤を指定します。public boolean isMyEye(int iCol,
int iRow)
iCol - 盤上の桁を指定します。iRow - 盤上の行を指定します。public boolean isPass(Pos pos)
pos - 盤上の位置を指定します。public boolean isPass(int iCol,
int iRow)
iCol - 盤上の桁を指定します。iRow - 盤上の行を指定します。public boolean isPossibleMove(int iCol,
int iRow)
isPossibleMove クラス内 GameiCol - 盤上の桁を指定します。iRow - 盤上の行を指定します。public boolean isResign(Pos pos)
pos - 盤上の位置を指定します。public boolean isResign(int iCol,
int iRow)
iCol - 盤上の桁を指定します。iRow - 盤上の行を指定します。public boolean isSuisideMove(int iCol,
int iRow)
iCol - 盤上の桁を指定します。iRow - 盤上の行を指定します。public float judge()
public int removeStonesIfCaptured(IgoBoard brd)
brd - 碁盤@Deprecated public void removeUnit(Unit unit)
unit - 取り除く石を連として指定します。