Refactor project structure by moving core files to corelogic and updating build configurations

This commit is contained in:
2024-11-22 16:41:06 +11:00
parent 2ae140f17e
commit 4ccd8daa69
37 changed files with 845 additions and 708 deletions
+41
View File
@@ -0,0 +1,41 @@
#include <mind.h>
int main(int argc, char **argv)
{
Mind mind;
for (;;)
{
AttentionGrabber currentEmergency = mind.poll();
if (!currentEmergency)
{
// Idle thought's goal is automatically Goal::DRIFT.
auto idleThought = std::make_shared<IdleThought>();
mind.focusOn(idleThought);
}
else
{
thought::Goal goal;
auto urgentThought = std::make_shared<ActiveThought>(currentEmergency);
if (!mind.recognizes(currentEmergency.cause)) {
goal = thought::Goal
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS;
}
else {
goal = thought::Goal
::RESPOND_TO_CAUSAL_QUALE;
}
urgentThought->setGoal(goal);
mind.focusOn(urgentThought);
}
mind.execute();
}
return 0;
}