Implemented basic conceptual structure

This commit is contained in:
2024-09-04 14:08:50 +10:00
parent 1211140f82
commit 581e6d6277
7 changed files with 100 additions and 1 deletions
+23
View File
@@ -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
+20
View File
@@ -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
View File
@@ -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
+9
View File
@@ -0,0 +1,9 @@
#ifndef _SCENE_H
#define _SCENE_H
class Scene
{
};
#endif
+8
View File
@@ -0,0 +1,8 @@
#ifndef _SUBCONSCIOUS_H
#define _SUBCONSCIOUS_H
class Subconscious
{
};
#endif
+12
View File
@@ -0,0 +1,12 @@
#ifndef _THOUGHT_H
#define _THOUGHT_H
#include <scene.h>
class Thought
{
public:
Scene scene;
};
#endif
+11
View File
@@ -0,0 +1,11 @@
#include <mind.h>
int main(int argc, char **argv)
{
for (;;)
{
mind.wander();
}
return 0;
}