Finally abstracted constants properly. Changed how the event module works; wasn't really abstract before. Removed libs we're not going to use: native, signal.

This commit is contained in:
rude
2009-10-10 11:11:04 +02:00
parent 0a2ae705dd
commit 87e3c4131c
101 changed files with 3225 additions and 33496 deletions
+13 -2
View File
@@ -23,6 +23,7 @@
// LOVE
#include <common/Object.h>
#include <common/StringMap.h>
namespace love
{
@@ -32,13 +33,23 @@ namespace physics
{
public:
enum ShapeType
enum Type
{
SHAPE_INVALID,
SHAPE_CIRCLE,
SHAPE_POLYGON,
SHAPE_MAX_ENUM
};
virtual ~Shape(){}
virtual ~Shape();
static bool getConstant(const char * in, Type & out);
static bool getConstant(Type in, const char *& out);
private:
static StringMap<Type, SHAPE_MAX_ENUM>::Entry typeEntries[];
static StringMap<Type, SHAPE_MAX_ENUM> types;
};
} // physics