De-constify piece types.component-api/deconst-typesmaster/deconst-types
commitbdebacd05395934f561268139d156a9ccd47cb0e
authorYann Dirson <ydirson@altern.org>
Sat, 19 Jan 2008 18:49:26 +0000 (19 19:49 +0100)
committerYann Dirson <ydirson@altern.org>
Sat, 19 Jan 2008 18:49:26 +0000 (19 19:49 +0100)
tree22ce73d1f4936c57ee34018c02e905976f426516
parente8c27d2aff5af8588330ce638fa5f28a45b254b2
De-constify piece types.

This will allow to have modify a piece type instead of just replacing
it using setType().

This goes as far as deconstification of Type's inside pools, but some
rework could probably be done (around the Key thing I think) to
deconstify less pool APIs.
src/core/defaultpool.cpp
src/core/defaultpool.h
src/core/piece.cpp
src/core/piece.h
src/core/pool.h
src/variants/chess/state.cpp
src/variants/shogi/behaviour.cpp
src/variants/shogi/state.cpp