프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_board | |||
_figureType | FigureType | ||
_legalSteps | LinkedList |
||
_row | int | ||
_white | bool |
메소드 | 설명 | |
---|---|---|
Clone ( ) : |
||
Figure ( FigureType type, int r, int c, |
||
calculateLegalSteps ( ) : void | ||
getCol ( ) : int | ||
getFigureType ( ) : FigureType | ||
getLegalSteps ( ) : LinkedList |
||
getLegalSteps ( |
||
getRow ( ) : int | ||
isLegalStep ( |
||
isLegalStep ( int r, int c ) : StepType | ||
isWhite ( ) : bool | ||
setBoard ( |
||
setColor ( bool w ) : void | ||
setRC ( int r, int c ) : void |
메소드 | 설명 | |
---|---|---|
isEnemy ( |
||
isEnemy ( int r, int c ) : bool |
public Figure ( FigureType type, int r, int c, |
||
type | FigureType | |
r | int | |
c | int | |
b | ||
리턴 | System |
public static getLegalSteps ( |
||
board | ||
figure | ||
fromCheckTest | bool | |
리턴 | LinkedList |
protected static isEnemy ( |
||
board | ||
fr | int | |
fc | int | |
r | int | |
c | int | |
리턴 | bool |
public static isLegalStep ( |
||
board | ||
fromRow | int | |
fromCol | int | |
toRow | int | |
toCol | int | |
리턴 | StepType |