Change Board::get() to return a pointer.
commite6300ffeb06e7fdbc24702f09cf4319d35e63f7e
authorYann Dirson <ydirson@altern.org>
Sun, 10 Feb 2008 23:01:41 +0000 (11 00:01 +0100)
committerYann Dirson <ydirson@altern.org>
Sun, 10 Feb 2008 23:01:41 +0000 (11 00:01 +0100)
treedc1a3c3e8ba20a77f29e9e444103e3829bed6a35
parent06658aa283e9c5d6e33abfe761b7bd74aa7665bc
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