Director: now has a goal. Goal inherits from Scene
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
#define DIRECTOR_H
|
#define DIRECTOR_H
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
#include <goal.h>
|
||||||
|
|
||||||
namespace hk {
|
namespace hk {
|
||||||
namespace director {
|
namespace director {
|
||||||
@@ -10,6 +11,8 @@ class Director {
|
|||||||
public:
|
public:
|
||||||
Director() = default;
|
Director() = default;
|
||||||
~Director() = default;
|
~Director() = default;
|
||||||
|
|
||||||
|
Goal purpose;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace director
|
} // namespace director
|
||||||
|
|||||||
@@ -5,13 +5,10 @@
|
|||||||
|
|
||||||
namespace hk {
|
namespace hk {
|
||||||
|
|
||||||
class Goal {
|
class Goal : public simulator::Scene {
|
||||||
public:
|
public:
|
||||||
Goal(const simulator::Scene& scene) : scene(scene) {}
|
Goal() = default;
|
||||||
~Goal() = default;
|
~Goal() = default;
|
||||||
|
|
||||||
private:
|
|
||||||
simulator::Scene scene;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace hk
|
} // namespace hk
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class Scene
|
|||||||
public:
|
public:
|
||||||
using Id = uint32_t;
|
using Id = uint32_t;
|
||||||
|
|
||||||
Scene() :
|
Scene(void) :
|
||||||
cursor(commands)
|
cursor(commands)
|
||||||
{}
|
{}
|
||||||
~Scene() = default;
|
~Scene() = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user