Change Board::get() to return a pointer.
commita35bc5da7f28167e11a23c5a0434cb7167a029d7
authorYann Dirson <ydirson@altern.org>
Sat, 15 Mar 2008 15:18:29 +0000 (15 16:18 +0100)
committerYann Dirson <ydirson@altern.org>
Sat, 15 Mar 2008 15:18:29 +0000 (15 16:18 +0100)
tree37c8add18c18875c97781666e265112f5c5ed6a8
parentbc2913c5885b9f51bde2456ce9f4530c279d4ec1
Change Board::get() to return a pointer.

This allows to avoid many useless copies of a Piece object, and will allow
dynamic casting a Piece object fetched from the board to its correct
subtype.
15 files changed:
src/core/baseanimator.cpp
src/core/board.cpp
src/core/board.h
src/core/defaultpolicy.cpp
src/graphicalsystem.cpp
src/variants/chess/animator.cpp
src/variants/chess/behaviour.cpp
src/variants/chess/castlingrules.cpp
src/variants/chess/moveserializer.cpp
src/variants/chess/pawn.cpp
src/variants/chess/state.cpp
src/variants/chess/validator.cpp
src/variants/crazyhouse/behaviour.cpp
src/variants/crazyhouse/state.cpp
src/variants/crazyhouse/validator.cpp