returns the coloroffset for a piece of the given color concode_field_sep int IMG_BLACK concode_elem_sep int NUM_PIECE_TYPES concode_elem_sep int SQUARE_WIDTH concode_elem_sep int BOARD_HEIGHT concode_elem_sep int CENTERING_AMT_X concode_elem_sep int NUM_COLORS concode_elem_sep int IMG_KING concode_elem_sep int IMG_BISHOP concode_elem_sep int xPos concode_elem_sep BufferedImage[] pieceImages concode_elem_sep ChessPiece[][] pieces concode_elem_sep int IMG_PAWN concode_elem_sep int CENTERING_AMT_Y concode_elem_sep int BOARD_WIDTH concode_elem_sep int NUM_COLS concode_elem_sep int IMG_WHITE concode_elem_sep int IMG_ROOK concode_elem_sep int IMG_HEIGHT concode_elem_sep int yPos concode_elem_sep int SQUARE_HEIGHT concode_elem_sep ChessPiece selectedPiece concode_elem_sep int IMG_QUEEN concode_elem_sep Color lightPieceColor concode_elem_sep int IMG_KNIGHT concode_elem_sep int IMG_RED concode_elem_sep int NUM_ROWS concode_elem_sep Color darkSquareColor concode_elem_sep Color lightSquareColor concode_elem_sep Color darkPieceColor concode_elem_sep int IMG_WIDTH concode_elem_sep Color selectedPieceColor concode_field_sep void initializeImages concode_elem_sep void setY concode_elem_sep int getPieceOffset concode_elem_sep void setX concode_elem_sep void setPieces concode_elem_sep int getImageIndex concode_elem_sep void paintBoard concode_elem_sep int getX concode_elem_sep int getY concode_elem_sep void paintPiece concode_elem_sep ChessPiece getPieceAt concode_elem_sep void setPieceAt concode_elem_sep ArrayList<ChessPiece> getPiecesList concode_elem_sep void setSelectedPiece
int function ( Color arg0 ) { if ( arg0 == Color . red ) { return IMG_RED ; } else if ( arg0 == Color . black ) { return IMG_BLACK ; } else { return IMG_WHITE ; } }