Everything builds now
This commit is contained in:
+3
-5
@@ -2,18 +2,16 @@
|
|||||||
#define _MIND_H
|
#define _MIND_H
|
||||||
|
|
||||||
#include <thought.h>
|
#include <thought.h>
|
||||||
|
#include <subconscious.h>
|
||||||
|
|
||||||
class Mind
|
class Mind
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void Mind::wander(void)
|
void wander(void)
|
||||||
{
|
|
||||||
for (;;)
|
|
||||||
{
|
{
|
||||||
Thought idleThought(subconscious);
|
Thought idleThought(subconscious);
|
||||||
|
|
||||||
idleThought.walk(mind);
|
idleThought.walk();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -1,7 +1,10 @@
|
|||||||
#ifndef _SUBCONSCIOUS_H
|
#ifndef _SUBCONSCIOUS_H
|
||||||
#define _SUBCONSCIOUS_H
|
#define _SUBCONSCIOUS_H
|
||||||
|
|
||||||
|
#include <thoughtContentSource.h>
|
||||||
|
|
||||||
class Subconscious
|
class Subconscious
|
||||||
|
: public ThoughtContentSource
|
||||||
{
|
{
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,26 @@
|
|||||||
#ifndef _THOUGHT_H
|
#ifndef _THOUGHT_H
|
||||||
#define _THOUGHT_H
|
#define _THOUGHT_H
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
#include <scene.h>
|
#include <scene.h>
|
||||||
|
#include <thoughtContentSource.h>
|
||||||
|
|
||||||
class Thought
|
class Thought
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
Thought(ThoughtContentSource csource)
|
||||||
|
{}
|
||||||
|
|
||||||
|
void walk(void)
|
||||||
|
{
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
|
step();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void step(void) { std::cout <<"Step\n"; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Scene scene;
|
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)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
Mind mind;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
mind.wander();
|
mind.wander();
|
||||||
|
|||||||
Reference in New Issue
Block a user