diff --git a/core/include/mind.h b/core/include/mind.h index 9a264be..af5b172 100644 --- a/core/include/mind.h +++ b/core/include/mind.h @@ -2,18 +2,16 @@ #define _MIND_H #include +#include class Mind { public: - void Mind::wander(void) + void wander(void) { - for (;;) - { - Thought idleThought(subconscious); + Thought idleThought(subconscious); - idleThought.walk(mind); - } + idleThought.walk(); } public: diff --git a/core/include/subconscious.h b/core/include/subconscious.h index 5b2f50a..bbd3c40 100644 --- a/core/include/subconscious.h +++ b/core/include/subconscious.h @@ -1,7 +1,10 @@ #ifndef _SUBCONSCIOUS_H #define _SUBCONSCIOUS_H +#include + class Subconscious +: public ThoughtContentSource { }; diff --git a/core/include/thought.h b/core/include/thought.h index b11a99b..f6d1927 100644 --- a/core/include/thought.h +++ b/core/include/thought.h @@ -1,10 +1,26 @@ #ifndef _THOUGHT_H #define _THOUGHT_H +#include #include +#include class Thought { +public: + Thought(ThoughtContentSource csource) + {} + + void walk(void) + { + for (;;) + { + step(); + } + }; + + void step(void) { std::cout <<"Step\n"; } + public: Scene scene; }; diff --git a/core/include/thoughtContentSource.h b/core/include/thoughtContentSource.h new file mode 100644 index 0000000..d50cf57 --- /dev/null +++ b/core/include/thoughtContentSource.h @@ -0,0 +1,8 @@ +#ifndef _THOUGHT_CONTENT_SOURCE_H +#define _THOUGHT_CONTENT_SOURCE_H + +class ThoughtContentSource +{ +}; + +#endif diff --git a/core/main.cpp b/core/main.cpp index 65591d9..7b4dd52 100644 --- a/core/main.cpp +++ b/core/main.cpp @@ -2,6 +2,8 @@ int main(int argc, char **argv) { + Mind mind; + for (;;) { mind.wander();