All Downloads are FREE. Search and download functionalities are using the official Maven repository.

APT.all-test.MOUTBot.all.init-lastarea.soar Maven / Gradle / Ivy

echo "\nLoading init-lastarea"
      
#seed the current and last area
#should fire once on game entry

sp {all*propose*init-lastarea
   (state  ^name unreal
              ^top-state.map 
              ^io.input-link.agent.area )
   ( -^current-area )
-->
   ( ^operator  + >, =)
   ( ^name init-lastarea
        ^newname )
}

sp {all*apply*init-lastarea
   (state  ^operator 
              ^top-state.map )
   ( ^name init-lastarea
        ^newname )
   ( ^area )
   ( ^name 
           ^visited )
-->
   ( ^last-area |none|)
   ( ^current-area )
   ( ^visited (+  1))
   ( ^visited  -)
}