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