Slight tweaks to waypoints

This commit is contained in:
Kayne Ruse
2015-01-02 23:51:00 +11:00
parent d815f17442
commit 92eb75af7e
4 changed files with 28 additions and 18 deletions
+11 -2
View File
@@ -22,7 +22,8 @@
#ifndef WAYPOINTDATA_HPP_
#define WAYPOINTDATA_HPP_
#include "entity.hpp"
#include "bounding_box.hpp"
#include "vector2.hpp"
#if defined(__MINGW32__)
#include "lua/lua.hpp"
@@ -32,7 +33,7 @@
#include <string>
class WaypointData: public Entity {
class WaypointData {
public:
WaypointData() = default;
~WaypointData() = default;
@@ -40,10 +41,18 @@ public:
int SetTriggerReference(int i);
int GetTriggerReference();
BoundingBox SetBoundingBox(BoundingBox b);
BoundingBox GetBoundingBox();
Vector2 SetOrigin(Vector2 v);
Vector2 GetOrigin();
private:
friend class WaypointManager;
int triggerRef = LUA_NOREF;
BoundingBox bounds;
Vector2 origin;
};
#endif