00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Detailed tutorial with multiple slides explaining how to play - 00008 // the game. - 00009 // - 00010 // --------------------------------------------------------------------------- 00011 00012 #ifndef EXTENDEDTUTORIAL_H 00013 #define EXTENDEDTUTORIAL_H 00014 00015 #include "Iw2D.h" 00016 #include "IwGx.h" 00017 #include "input.h" 00018 #include "Menu.h" 00019 #include "CollisionManager.h" 00020 00026 class ExtendedTutorial : public Menu 00027 { 00028 public: 00032 ExtendedTutorial(); 00033 00037 ~ExtendedTutorial() override; 00038 00043 void Update(double deltaTime); 00044 00048 void Draw(); 00049 00053 void DrawSlides(); 00054 00059 CIwFVec2 GetTickPosition(); 00060 00065 float GetTickRadius(); 00066 00071 void SetSlide(int slide); 00072 00073 protected: 00075 static const int m_numSlides = 14; 00076 00078 CIw2DImage *m_texture[m_numSlides]; 00079 00081 CIw2DImage *m_infoIcon; 00082 00084 CIw2DImage *m_tickIcon; 00085 00087 CIw2DImage *m_greenTickIcon; 00088 00090 CIw2DImage *m_rightIcon; 00091 00093 CIw2DImage *m_greenRightIcon; 00094 00096 CIw2DImage *m_leftIcon; 00097 00099 CIw2DImage *m_greenLeftIcon; 00100 00102 CIwFVec2 m_position; 00103 00105 CIwFVec2 m_infoPosition; 00106 00108 CIwFVec2 m_tickPosition; 00109 00111 CIwFVec2 m_rightPosition; 00112 00114 CIwFVec2 m_leftPosition; 00115 00117 float m_counter; 00118 00120 float m_slideCounter; 00121 }; 00122 00123 #endif