Add gitignores for Automake and add new files

This commit is contained in:
2024-11-21 02:31:37 +11:00
parent 4f0da885dd
commit 30da26f0e4
8 changed files with 6466 additions and 15 deletions
+6
View File
@@ -1 +1,7 @@
*~
Makefile.in
aclocal.m4
b
build-aux
autom4te.cache/
config.h.in
Vendored Executable
+6393
View File
File diff suppressed because it is too large Load Diff
+12
View File
@@ -0,0 +1,12 @@
#ifndef _BODY_LOCUS_H
#define _BODY_LOCUS_H
#include <cstdint>
class BodyCoords
{
uint32_t segment;
uint32_t coord;
};
#endif
+15
View File
@@ -0,0 +1,15 @@
#ifndef _GOAL_H
#define _GOAL_H
namespace thought {
enum class Goal
{
DRIFT,
ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS,
RESPOND_TO_CAUSAL_QUALE
};
}
#endif
+3
View File
@@ -32,6 +32,9 @@ class NonNeutralQuale
{
public:
virtual void eventInd(void);
public:
BodyCoords bodyCoords;
};
#endif
+8 -12
View File
@@ -4,21 +4,14 @@
#include <iostream>
#include <scene.h>
#include <attentionGrabber.h>
#include <goal.h>
class Thought
{
public:
enum class Goal
{
DRIFT,
ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS,
RESPOND_TO_CAUSAL_QUALE
};
Thought(void)
{
setGoal(Goal::DRIFT);
setGoal(thought::Goal::DRIFT);
}
public:
@@ -31,12 +24,12 @@ public:
};
void step(void) { std::cout <<"Step\n"; }
void setGoal(Goal g)
void setGoal(thought::Goal g)
{ goal = g; }
public:
Scene scene;
Goal goal;
thought::Goal goal;
};
class ActiveThought
@@ -46,7 +39,8 @@ public:
ActiveThought(AttentionGrabber ag)
: currFocus(ag)
{
setGoal(Goal::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS);
setGoal(thought::Goal
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS);
}
public:
@@ -61,4 +55,6 @@ public:
{}
};
#endif
+26
View File
@@ -0,0 +1,26 @@
#ifndef _VALUE_JUDGEMENT_H
#define _VALUE_JUDGEMENT_H
#include <cstdint>
class ValueJdgmnt
{
uint32_t intensity;
};
class PosValueJdgmnt
: public ValueJdgmnt
{
};
class NegValueJdgmnt
: public ValueJdgmnt
{
};
class NtrlValueJdgmnt
: public ValueJdgmnt
{
};
#endif
+3 -3
View File
@@ -21,12 +21,12 @@ int main(int argc, char **argv)
auto urgentThought = std::make_shared<ActiveThought>(currentEmergency);
if (mind.recognizes(currentEmergency.cause)) {
goal = Thought::Goal
if (!mind.recognizes(currentEmergency.cause)) {
goal = thought::Goal
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS;
}
else {
goal = Thought::Goal
goal = thought::Goal
::RESPOND_TO_CAUSAL_QUALE;
}