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
+14 -3
View File
@@ -23,6 +23,7 @@
// LOVE
#include <common/Object.h>
#include <common/StringMap.h>
namespace love
{
@@ -32,18 +33,28 @@ namespace physics
{
public:
enum JointType
enum Type
{
JOINT_INVALID,
JOINT_DISTANCE,
JOINT_REVOLUTE,
JOINT_PRISMATIC,
JOINT_MOUSE,
JOINT_PULLEY,
JOINT_GEAR
JOINT_GEAR,
JOINT_MAX_ENUM
};
virtual ~Joint(){}
virtual ~Joint();
static bool getConstant(const char * in, Type & out);
static bool getConstant(Type in, const char *& out);
private:
static StringMap<Type, JOINT_MAX_ENUM>::Entry typeEntries[];
static StringMap<Type, JOINT_MAX_ENUM> types;
};
} // physics