00001 /* getPiece.h 00002 */ 00003 #ifndef _GETPIECE_H 00004 #define _GETPIECE_H 00005 00006 #include "osl/piece.h" 00007 namespace osl 00008 { 00009 namespace effect_action 00010 { 00014 template<class State> 00015 struct GetPiece 00016 { 00017 Piece& piece; 00018 GetPiece(Piece& piece) :piece(piece){} 00019 bool done() const { return true; } 00020 template<Player P> 00021 void doAction(Piece p, Position) { piece=p; } 00022 }; 00023 } // namespace effect_action 00024 } // namespace osl 00025 00026 00027 #endif /* _GETPIECE_H */ 00028 // ;;; Local Variables: 00029 // ;;; mode:c++ 00030 // ;;; c-basic-offset:2 00031 // ;;; End: