FILES:
Function | Parameter(s) | Return value |
---|---|---|
getColor() | none | int |
Returns the game pieces color ID (0 for black, 1 for white)
Function | Parameter(s) | Return value |
---|---|---|
getLocation() | none | int |
Function returns a pieces location on the board in integer format.
Function | Parameter(s) | Return value |
---|---|---|
getPieceId() | none | int |
Function returns a pieces unique identifier in integer format.
Function | Parameter(s) | Return value |
---|---|---|
setColor(int color) | int | bool |
Function set's game piece color identifier via supplied int argument.
Returns boolean success.
Function | Parameter(s) | Return value |
---|---|---|
setLocation(int loc) | int | bool |
Function set's game piece's game board location via supplied int argument. Returns boolean success.
Function | Parameter(s) | Return value |
---|---|---|
setPieceId(int id) | int | bool |
Function set's game piece's unique identifier via supplied int argument. Returns boolean success.