|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvutbr.checkers.game.GameHistoryTurn
public class GameHistoryTurn
Jednotlive posunuti figurkou
Constructor Summary | |
---|---|
GameHistoryTurn()
Kontruktor |
Method Summary | |
---|---|
protected GamePiece |
getRemoved()
Vrati typ odebrane figurky |
protected int |
getRemovedX()
Vrati souradnici x odebrane figurky |
protected int |
getRemovedY()
Vrati souradnici y odebrane figurky |
protected int |
getToX()
Vrati cilovou souradnici x |
protected int |
getToY()
Vrati cilovou souradnici y |
protected int |
getX()
Vrati zdrojovou souradnici x |
protected int |
getY()
Vrati zdrojovou souradnici y |
protected boolean |
isChangedToKing()
Vrati priznak zmeny na damu |
protected void |
setChangedToKing()
|
protected void |
setRemoved(int x,
int y,
GamePiece piece)
Nastavi souradnice a typ odebrane figurky |
protected void |
setToX(int toX)
Nastavi cilovou souradnici X |
protected void |
setToY(int toY)
Nastavi cilovou souradnici Y |
protected void |
setTurn(int x,
int y,
int toX,
int toY)
Nastavi souradnice tahu |
protected void |
setX(int x)
Nastavi zdrojovou souradnici X |
protected void |
setY(int y)
Nastavi zdrojovou souradnici Y |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameHistoryTurn()
Method Detail |
---|
protected void setTurn(int x, int y, int toX, int toY)
x
- Vychozi souradnice xy
- Vychozi souradnice ytoX
- Cilova souradnice xtoY
- Cilova souradnice yprotected void setRemoved(int x, int y, GamePiece piece)
x
- Souradnice xy
- Souradnice ypiece
- Typ figurkyprotected void setChangedToKing()
protected void setX(int x)
x
- Zdrojova souradnice Xprotected void setY(int y)
y
- Zdrojova souradnice Yprotected void setToX(int toX)
toX
- Cilova souradnice Xprotected void setToY(int toY)
toY
- Cilova souradnice Yprotected int getX()
protected int getY()
protected int getToX()
protected int getToY()
protected GamePiece getRemoved()
protected int getRemovedX()
protected int getRemovedY()
protected boolean isChangedToKing()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |