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

APT.all-test.HauntBot.common.move-to-node.move-to-area.soar Maven / Gradle / Ivy

echo "\nLoading move-to-node/move-to-area"

#IF
#   The node is not in the same area as we are
#THEN: 
#    Propose move to the area the node is in first
sp {move-to-node*propose*move-to-area
   (state  -^name move-to-connected-node
               ^type move-to-node
               ^top-state.map.current-area 
               ^superstate.operator.node.area {  <>  })
-->
#   (write (crlf) |Propose move to new node's area: | )  
   ( ^operator  + =)
   ( ^name move-to-new-nodes-area
        ^type move-to-area
        ^area )
}