Add gitignores for Automake and add new files
This commit is contained in:
@@ -1 +1,7 @@
|
|||||||
*~
|
*~
|
||||||
|
Makefile.in
|
||||||
|
aclocal.m4
|
||||||
|
b
|
||||||
|
build-aux
|
||||||
|
autom4te.cache/
|
||||||
|
config.h.in
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef _BODY_LOCUS_H
|
||||||
|
#define _BODY_LOCUS_H
|
||||||
|
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
|
class BodyCoords
|
||||||
|
{
|
||||||
|
uint32_t segment;
|
||||||
|
uint32_t coord;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -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
|
||||||
@@ -32,6 +32,9 @@ class NonNeutralQuale
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void eventInd(void);
|
virtual void eventInd(void);
|
||||||
|
|
||||||
|
public:
|
||||||
|
BodyCoords bodyCoords;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
+8
-12
@@ -4,21 +4,14 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <scene.h>
|
#include <scene.h>
|
||||||
#include <attentionGrabber.h>
|
#include <attentionGrabber.h>
|
||||||
|
#include <goal.h>
|
||||||
|
|
||||||
class Thought
|
class Thought
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum class Goal
|
|
||||||
{
|
|
||||||
DRIFT,
|
|
||||||
ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS,
|
|
||||||
RESPOND_TO_CAUSAL_QUALE
|
|
||||||
};
|
|
||||||
|
|
||||||
Thought(void)
|
Thought(void)
|
||||||
{
|
{
|
||||||
setGoal(Goal::DRIFT);
|
setGoal(thought::Goal::DRIFT);
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -31,12 +24,12 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
void step(void) { std::cout <<"Step\n"; }
|
void step(void) { std::cout <<"Step\n"; }
|
||||||
void setGoal(Goal g)
|
void setGoal(thought::Goal g)
|
||||||
{ goal = g; }
|
{ goal = g; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Scene scene;
|
Scene scene;
|
||||||
Goal goal;
|
thought::Goal goal;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ActiveThought
|
class ActiveThought
|
||||||
@@ -46,7 +39,8 @@ public:
|
|||||||
ActiveThought(AttentionGrabber ag)
|
ActiveThought(AttentionGrabber ag)
|
||||||
: currFocus(ag)
|
: currFocus(ag)
|
||||||
{
|
{
|
||||||
setGoal(Goal::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS);
|
setGoal(thought::Goal
|
||||||
|
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -61,4 +55,6 @@ public:
|
|||||||
{}
|
{}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -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
@@ -21,12 +21,12 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
auto urgentThought = std::make_shared<ActiveThought>(currentEmergency);
|
auto urgentThought = std::make_shared<ActiveThought>(currentEmergency);
|
||||||
|
|
||||||
if (mind.recognizes(currentEmergency.cause)) {
|
if (!mind.recognizes(currentEmergency.cause)) {
|
||||||
goal = Thought::Goal
|
goal = thought::Goal
|
||||||
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS;
|
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
goal = Thought::Goal
|
goal = thought::Goal
|
||||||
::RESPOND_TO_CAUSAL_QUALE;
|
::RESPOND_TO_CAUSAL_QUALE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user