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
+6 -6
View File
@@ -34,21 +34,21 @@ public:
WaypointData() = default;
~WaypointData() = default;
int SetTriggerReference(int i);
int GetTriggerReference();
Vector2 SetOrigin(Vector2 v);
Vector2 GetOrigin();
BoundingBox SetBoundingBox(BoundingBox b);
BoundingBox GetBoundingBox();
Vector2 SetOrigin(Vector2 v);
Vector2 GetOrigin();
int SetTriggerReference(int i);
int GetTriggerReference();
private:
friend class WaypointManager;
int triggerRef = LUA_NOREF;
BoundingBox bounds;
Vector2 origin;
BoundingBox bounds;
int triggerRef = LUA_NOREF;
};
#endif