Spinscale: PuppetComponent takes PuppetApplication&
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#ifndef _BODY_COMPONENT_H
|
||||
#define _BODY_COMPONENT_H
|
||||
|
||||
#include <spinscale/puppetApplication.h>
|
||||
#include <spinscale/component.h>
|
||||
#include <functional>
|
||||
#include <spinscale/callback.h>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define DIRECTOR_H
|
||||
|
||||
#include <config.h>
|
||||
#include <spinscale/puppetApplication.h>
|
||||
#include <spinscale/component.h>
|
||||
#include <goal.h>
|
||||
#include <lruLifo.h>
|
||||
@@ -17,10 +18,7 @@ class Director
|
||||
: public PuppetComponent
|
||||
{
|
||||
public:
|
||||
Director(Mind &parent, const std::shared_ptr<ComponentThread> &thread)
|
||||
: PuppetComponent(parent, thread)
|
||||
{}
|
||||
|
||||
Director(Mind &parent, const std::shared_ptr<ComponentThread> &thread);
|
||||
~Director() = default;
|
||||
|
||||
void negtrinEventInd(void);
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include <string>
|
||||
#include <spinscale/callback.h>
|
||||
|
||||
#include <spinscale/component.h>
|
||||
#include <spinscale/puppetApplication.h>
|
||||
#include <spinscale/component.h>
|
||||
#include <componentThread.h>
|
||||
#include <mindThread.h>
|
||||
#include <director/director.h>
|
||||
@@ -35,9 +35,6 @@ public:
|
||||
// Get all this Mind's component threads.
|
||||
std::vector<std::shared_ptr<MindThread>> getMindThreads() const;
|
||||
|
||||
// CPU distribution method
|
||||
void distributeAndPinThreadsAcrossCpus();
|
||||
|
||||
public:
|
||||
director::Director director;
|
||||
simulator::Simulator canvas;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#define SIMULATOR_H
|
||||
|
||||
#include <config.h>
|
||||
#include <spinscale/puppetApplication.h>
|
||||
#include <spinscale/component.h>
|
||||
#include <simulator/scene.h>
|
||||
|
||||
@@ -16,10 +17,7 @@ class Simulator
|
||||
: public PuppetComponent
|
||||
{
|
||||
public:
|
||||
Simulator(Mind &parent, const std::shared_ptr<ComponentThread> &thread)
|
||||
: PuppetComponent(parent, thread)
|
||||
{}
|
||||
|
||||
Simulator(Mind &parent, const std::shared_ptr<ComponentThread> &thread);
|
||||
~Simulator() = default;
|
||||
|
||||
void initialize();
|
||||
|
||||
Reference in New Issue
Block a user