00001 #ifndef _BREAKOUTEVENTS_H_ 00002 #define _BREAKOUTEVENTS_H_ 00003 00004 #include "IEvent.h" 00005 00006 class BreakoutStartGameEvent : public IEvent 00007 { 00008 public: 00009 BreakoutStartGameEvent() { m_eventName = cEventName; } 00010 ~BreakoutStartGameEvent() {} 00011 00012 virtual HashString GetEventType() { return m_eventName; } 00013 00014 const static HashString cEventName; 00015 00016 protected: 00017 HashString m_eventName; 00018 }; 00019 00020 class BreakoutPauseGameEvent : public IEvent 00021 { 00022 public: 00023 BreakoutPauseGameEvent() { m_eventName = cEventName; } 00024 ~BreakoutPauseGameEvent() {} 00025 00026 virtual HashString GetEventType() { return m_eventName; } 00027 00028 const static HashString cEventName; 00029 00030 protected: 00031 HashString m_eventName; 00032 }; 00033 00034 class BreakoutUnpauseGameEvent : public IEvent 00035 { 00036 public: 00037 BreakoutUnpauseGameEvent() { m_eventName = cEventName; } 00038 ~BreakoutUnpauseGameEvent() {} 00039 00040 virtual HashString GetEventType() { return m_eventName; } 00041 00042 const static HashString cEventName; 00043 00044 protected: 00045 HashString m_eventName; 00046 }; 00047 00048 class BreakoutGameOverEvent : public IEvent 00049 { 00050 public: 00051 BreakoutGameOverEvent() { m_eventName = cEventName; } 00052 ~BreakoutGameOverEvent() {} 00053 00054 virtual HashString GetEventType() { return m_eventName; } 00055 00056 const static HashString cEventName; 00057 00058 protected: 00059 HashString m_eventName; 00060 }; 00061 00062 #endif
1.5.9