More wireframing

This commit is contained in:
2024-09-08 01:04:41 +10:00
parent 0ccb7e5542
commit e0b84fad0c
17 changed files with 242 additions and 18 deletions
+29 -1
View File
@@ -6,7 +6,35 @@ int main(int argc, char **argv)
for (;;)
{
mind.wander();
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;