fysxasteroids/asteroids/AsteroidsEvents.h
Martin Felis (schakeline) 3340471c61 view states are now managed by a stack + bugfixing
- when one defines DECL_ENUM_LAST it is possible to check whether a string for
	a give enum exists
- making sure ships are alive when they are spawned
- added warning concerning QueueEvent and TriggerEvent (one shall avoid the
	latter)
2010-11-27 20:56:38 +01:00

24 lines
439 B
C++

#ifndef ASTEROIDSEVENTS_H
#define ASTEROIDSEVENTS_H
#include "EnumToString.h"
namespace asteroids {
BEGIN_ENUM(Event)
{
DECL_ENUM_ELEMENT(EventAccelerateStart),
DECL_ENUM_ELEMENT(EventAccelerateStop),
DECL_ENUM_ELEMENT(EventLevelComplete),
DECL_ENUM_ELEMENT(EventChangeGameState),
DECL_ENUM_ELEMENT(EventGameOver),
DECL_ENUM_ELEMENT(EventShipExplode),
DECL_ENUM_LAST (Event)
}
END_ENUM(Event)
}
#endif /* ASTEROIDSEVENTS_H */