Spinscale: PuppetComponent takes PuppetApplication&

This commit is contained in:
2025-12-27 14:15:17 -04:00
parent f862db922e
commit 0c4f427c0a
13 changed files with 66 additions and 42 deletions
+1
View File
@@ -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 -4
View File
@@ -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);
+1 -4
View File
@@ -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 -4
View File
@@ -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();