drag piece to make move concode_field_sep MouseInputAdapter mouse concode_elem_sep int prevc concode_elem_sep Game game concode_elem_sep ChessBoardGUI view concode_elem_sep int bscore concode_elem_sep int prevr concode_elem_sep int wscore concode_elem_sep boolean gameOver concode_elem_sep Piece p concode_elem_sep MoveCommand lastCommand concode_field_sep void mouseReleased concode_elem_sep void init concode_elem_sep void setUndoAction concode_elem_sep void setForfeitAction concode_elem_sep void main concode_elem_sep void setStartAction concode_elem_sep void mouseMoved concode_elem_sep void setBoardAction concode_elem_sep void makeWarning concode_elem_sep void mousePressed
void function ( MouseEvent arg0 ) { if ( p != null ) { p . xcoord = arg0 . getX ( ) - view . cellw / 2 ; p . ycoord = arg0 . getY ( ) - view . cellh / 2 ; view . mainboard . repaint ( ) ; } }