WaypointManager is no longer a Singleton, wrote waypoint API outline

I'm planning on giving each room it's own waypoint manager, so it can
compare it's waypoints against the characters in that room alone. If it
turns out to be a good pattern, I'll do thae same for monsters.
This commit is contained in:
Kayne Ruse
2015-01-09 13:21:09 +11:00
parent be67906218
commit b391dde089
8 changed files with 146 additions and 38 deletions
+93 -1
View File
@@ -23,8 +23,100 @@
#include "waypoint_data.hpp"
//TODO: Can I alias the entity API for this?
//origin
static int setOriginX(lua_State* L) {
//TODO
return 0;
}
static int setOriginY(lua_State* L) {
//TODO
return 0;
}
static int getOriginX(lua_State* L) {
//TODO
return 0;
}
static int getOriginY(lua_State* L) {
//TODO
return 0;
}
//bounds
static int setBoundingBoxX(lua_State* L) {
//TODO
return 0;
}
static int setBoundingBoxY(lua_State* L) {
//TODO
return 0;
}
static int setBoundingBoxW(lua_State* L) {
//TODO
return 0;
}
static int setBoundingBoxH(lua_State* L) {
//TODO
return 0;
}
static int getBoundingBoxX(lua_State* L) {
//TODO
return 0;
}
static int getBoundingBoxY(lua_State* L) {
//TODO
return 0;
}
static int getBoundingBoxW(lua_State* L) {
//TODO
return 0;
}
static int getBoundingBoxH(lua_State* L) {
//TODO
return 0;
}
//triggers
static int setTriggerReference(lua_State* L) {
//TODO
return 0;
}
static int getTriggerReference(lua_State* L) {
//TODO
return 0;
}
static const luaL_Reg waypointLib[] = {
//origin
{"SetOriginX",setOriginX},
{"SetOriginY",setOriginY},
{"GetOriginX",getOriginX},
{"GetOriginY",getOriginY},
//bounds
{"SetBoundsX",setBoundingBoxX},
{"SetBoundsY",setBoundingBoxY},
{"SetBoundsW",setBoundingBoxW},
{"SetBoundsH",setBoundingBoxH},
{"GetBoundsX",getBoundingBoxX},
{"GetBoundsY",getBoundingBoxY},
{"GetBoundsW",getBoundingBoxW},
{"GetBoundsH",getBoundingBoxH},
//triggers
{"SetTrigger",setTriggerReference},
{"GetTrigger",getTriggerReference},
{nullptr, nullptr}
};