Implemented basic conceptual structure
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#ifndef _MIND_H
|
||||
#define _MIND_H
|
||||
|
||||
#include <thought.h>
|
||||
|
||||
class Mind
|
||||
{
|
||||
public:
|
||||
void Mind::wander(void)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
Thought idleThought(subconscious);
|
||||
|
||||
idleThought.walk(mind);
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
Subconscious subconscious;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,20 @@
|
||||
#ifndef _NON_NEUTRAL_QUALIA_H
|
||||
#define _NON_NEUTRAL_QUALIA_H
|
||||
|
||||
#include <quale.h>
|
||||
|
||||
class PleasantQuale
|
||||
: public NonNeutralQuale
|
||||
{
|
||||
public:
|
||||
virtual void eventInd(void);
|
||||
};
|
||||
|
||||
class PainfulQuale
|
||||
: public NonNeutralQuale
|
||||
{
|
||||
public:
|
||||
virtual void eventInd(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
+17
-1
@@ -1,9 +1,11 @@
|
||||
#ifndef _QUALE_H
|
||||
#define _QUALE_H
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
class Quale
|
||||
{
|
||||
int intensity;
|
||||
public:
|
||||
enum class Type
|
||||
{
|
||||
NEUTRAL,
|
||||
@@ -15,6 +17,20 @@ class Quale
|
||||
PAINFUL,
|
||||
PLEASURABLE
|
||||
} type;
|
||||
|
||||
int32_t intensity;
|
||||
};
|
||||
|
||||
class NeutralQuale
|
||||
: public Quale
|
||||
{
|
||||
};
|
||||
|
||||
class NonNeutralQuale
|
||||
: public Quale
|
||||
{
|
||||
public:
|
||||
virtual void eventInd(void);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#ifndef _SCENE_H
|
||||
#define _SCENE_H
|
||||
|
||||
class Scene
|
||||
{
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
#ifndef _SUBCONSCIOUS_H
|
||||
#define _SUBCONSCIOUS_H
|
||||
|
||||
class Subconscious
|
||||
{
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,12 @@
|
||||
#ifndef _THOUGHT_H
|
||||
#define _THOUGHT_H
|
||||
|
||||
#include <scene.h>
|
||||
|
||||
class Thought
|
||||
{
|
||||
public:
|
||||
Scene scene;
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,11 @@
|
||||
#include <mind.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
mind.wander();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user