00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Singleplayer match class. - 00008 // - 00009 // --------------------------------------------------------------------------- 00010 00011 #ifndef SINGLEPLAYERMATCH_H 00012 #define SINGLEPLAYERMATCH_H 00013 00014 #include "Match.h" 00015 #include "AIOpponent.h" 00016 00021 class SinglePlayerMatch : public Match 00022 { 00023 public: 00027 SinglePlayerMatch(int aiDifficulty); 00028 00032 ~SinglePlayerMatch() override; 00033 00040 int Update(double deltaTime, 00041 CIw2DFont *font) override; 00042 00043 protected: 00045 AIOpponent *m_ai; 00046 00048 int m_sleepTimer; 00049 00051 static const int m_aiTurnLength = 50; 00052 00054 int m_aiDifficulty; 00055 }; 00056 00057 #endif 00058