Skip to content
Snippets Groups Projects
Commit 55644ab8 authored by Alex's avatar Alex
Browse files

handling of Reject in ActSolo

parent 084946be
Branches
No related tags found
No related merge requests found
......@@ -453,6 +453,11 @@ class AgentBehaviour(variable: Variable,
*/
when(ActSolo){
// When it receives a reject it does NOTHING
case Event(Reject(_), mind) =>
if (debug) println(s"$variable in $stateName has received Reject and ignores it")
stay using mind
// When it should act because it has the highest delta in the neighbourhood
case Event(Act(true, Some(move)), mind) =>
if (debug) println(s"$variable in $stateName has received Act(true)")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment