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

APT.all-test.MOUTBot.execute-mission.hunt.reconnoiter.move-to-point-of-domination.soar Maven / Gradle / Ivy

echo "\nLoading execute-mission/hunt/reconnoiter/move-to-pod"

#AMN: 2002-07-31
#IF:
#    1.  I have reached the corner of responsibility
#    2.  I have not moved to the point of domination
#    3.  I know where my point of domination is
#THEN:
#    Proposing moving to the point of domination
#FIXME:  This movement should be a sidestep and currently
#        isn't.
sp {reconnoiter*propose*move-to-point-of-domination
   (state  ^name reconnoiter
              ^top-state.mission.active-objective.offensive-position )
   ( ^moved-to-cor yes
             -^moved-to-pod yes
              ^point-of-domination )
-->
   ( ^operator  +, = 50)
   ( ^name move-to-point-of-domination
        ^type move-to-node
        ^node )
}

#AMN: 2002-07-31
#Once I reach the point of domination, record that fact
sp {apply*move-to-point-of-domination
   (state  ^operator 
              ^top-state.mission.active-objective.offensive-position 
              ^top-state.map.near-node )
   ( ^name move-to-point-of-domination)
   ( ^point-of-domination )
-->
   ( ^moved-to-pod yes)
}