Everything builds now
This commit is contained in:
+4
-6
@@ -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:
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
#ifndef _SUBCONSCIOUS_H
|
||||
#define _SUBCONSCIOUS_H
|
||||
|
||||
#include <thoughtContentSource.h>
|
||||
|
||||
class Subconscious
|
||||
: public ThoughtContentSource
|
||||
{
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef _THOUGHT_CONTENT_SOURCE_H
|
||||
#define _THOUGHT_CONTENT_SOURCE_H
|
||||
|
||||
class ThoughtContentSource
|
||||
{
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
Mind mind;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
mind.wander();
|
||||
|
||||
Reference in New Issue
Block a user