Click & drag functionality


The general idea is to allow clicking on any chess piece object and allow dragging it into any square on the grid. It doesn't matter if the grid's squares are valid moves for the selected piece, the chess engine can take care of this validation later. A desired behavior is to gray out in some way the rest of the pieces or to highlight the current piece to allow better differentiation.


agustinsanchez wrote Apr 13, 2008 at 8:24 PM

Performed some refactoring on the Material variable for ChessPiece, now it's called GeometryModel which is more accurate because it already contains a "material" property internally. This avoids duplications when invoked.

wrote Apr 13, 2008 at 10:18 PM

agustinsanchez wrote Apr 13, 2008 at 10:35 PM

Just uploaded a version that allows graying out items when clicked.

wrote Apr 14, 2008 at 3:35 PM

wrote Feb 13, 2013 at 5:53 PM

wrote Oct 2, 2013 at 12:31 PM