00001 /* ratingEnv.h 00002 */ 00003 #ifndef _RATINGENV_H 00004 #define _RATINGENV_H 00005 00006 #include "osl/container/moveStack.h" 00007 #include "osl/container/square8.h" 00008 #include "osl/container/pieceMask.h" 00009 #include "osl/state/numEffectState.h" 00010 #include "osl/progress/progress16.h" 00011 00012 namespace osl 00013 { 00014 namespace rating 00015 { 00016 class RatingEnv 00017 { 00018 public: 00019 MoveStack history; 00020 Square8 sendoffs; 00021 PieceMask my_pin, op_pin; 00022 int attack_count_for_turn; 00023 Progress16 progress; 00024 mutable CArray<signed char,Square::SIZE> counteffect2_cache; 00025 mutable CArray<int,Square::SIZE> pattern_cache; 00026 00027 void update(const NumEffectState& new_state, Move last_move); 00028 void make(const NumEffectState& new_state); 00029 void make(const NumEffectState& new_state, 00030 const PieceMask& my_pin, const PieceMask& op_pin, Progress16); 00031 }; 00032 } 00033 using rating::RatingEnv; 00034 } 00035 00036 #endif /* _RATINGENV_H */ 00037 // ;;; Local Variables: 00038 // ;;; mode:c++ 00039 // ;;; c-basic-offset:2 00040 // ;;; End: