Everything builds now

This commit is contained in:
2024-09-05 18:20:33 +10:00
parent 244b86cb72
commit 0ccb7e5542
5 changed files with 33 additions and 6 deletions
+4 -6
View File
@@ -2,18 +2,16 @@
#define _MIND_H
#include <thought.h>
#include <subconscious.h>
class Mind
{
public:
void Mind::wander(void)
void wander(void)
{
for (;;)
{
Thought idleThought(subconscious);
Thought idleThought(subconscious);
idleThought.walk(mind);
}
idleThought.walk();
}
public:
+3
View File
@@ -1,7 +1,10 @@
#ifndef _SUBCONSCIOUS_H
#define _SUBCONSCIOUS_H
#include <thoughtContentSource.h>
class Subconscious
: public ThoughtContentSource
{
};
+16
View File
@@ -1,10 +1,26 @@
#ifndef _THOUGHT_H
#define _THOUGHT_H
#include <iostream>
#include <scene.h>
#include <thoughtContentSource.h>
class Thought
{
public:
Thought(ThoughtContentSource csource)
{}
void walk(void)
{
for (;;)
{
step();
}
};
void step(void) { std::cout <<"Step\n"; }
public:
Scene scene;
};
+8
View File
@@ -0,0 +1,8 @@
#ifndef _THOUGHT_CONTENT_SOURCE_H
#define _THOUGHT_CONTENT_SOURCE_H
class ThoughtContentSource
{
};
#endif
+2
View File
@@ -2,6 +2,8 @@
int main(int argc, char **argv)
{
Mind mind;
for (;;)
{
mind.wander();