00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Basic tutorial which is shown at the start of matches. - 00008 // - 00009 // --------------------------------------------------------------------------- 00010 00011 #ifndef TUTORIAL_H 00012 #define TUTORIAL_H 00013 00014 #include "Iw2D.h" 00015 #include "IwGx.h" 00016 #include "input.h" 00017 #include "CollisionManager.h" 00018 00024 class Tutorial 00025 { 00026 public: 00030 Tutorial(); 00031 00035 ~Tutorial(); 00036 00042 int Update(double deltaTime); 00043 00047 void Draw(); 00048 00053 CIwFVec2 GetTickPosition(); 00054 00059 float GetTickRadius(); 00060 00061 protected: 00063 static const int m_numSlides = 12; 00064 00066 CIw2DImage *m_texture[m_numSlides]; 00067 00069 CIw2DImage *m_infoIcon; 00070 00072 CIw2DImage *m_tickIcon; 00073 00075 CIw2DImage *m_greenTickIcon; 00076 00078 CIwFVec2 m_position; 00079 00081 CIwFVec2 m_infoPosition; 00082 00084 CIwFVec2 m_tickPosition; 00085 00087 float m_counter; 00088 00090 float m_tickScale; 00091 00093 bool m_scaleUp; 00094 00096 float m_tickScaleSpeed; 00097 00099 float m_tickScaleMax; 00100 00102 float m_tickScaleMin; 00103 00105 float m_counterSpeed; 00106 }; 00107 00108 #endif