| 1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef EVENT_GAMEEVENTS_H
- #define EVENT_GAMEEVENTS_H
- #include <boost/foreach.hpp>
- #include "Base/Marcos.h"
- namespace Egametang {
- enum
- {
- SPELL_START = 0,
- SPELL_FINISH = 1,
- ADD_BUFF = 2,
- REMOVE_BUFF = 3,
- };
- class GameEvents
- {
- private:
- ConditionFactory factories;
- std::vector<std::list<Event> > events;
- public:
- GameEvents();
- ~GameEvents();
- void AddEvent(EventConf& conf);
- void Excute(int type, ContexIf* contex);
- };
- } // namespace Egametang
- #endif // EVENT_GAMEEVENTS_H
|