Main Page Files Productions Problem Spaces Operators Goal Hierarchy Groups Prod. By Type Todo All
attack/
fire-missile.soar
[src]
Go to the documentation for this file...
00001 echo "\nLoading attack/fire-missile.soar " 00002 00003 ###Propose Fire Operator 00004 ## If the state is attack and there is a tank on radar in the center, 00005 ## then propose the fire missile operator. 00006 00007 ##! 00008 # @brief Proposes fire-missile operator 00009 # 00010 # Proposes fire-missile when an enemy tank is sensed 00011 # on radar and straight ahead and there are missiles 00012 # available. 00013 # 00014 # @problem-space attack 00015 # @operator fire-missile 00016 # @type proposal 00017 sp {attack*propose*fire-missile 00018 (state <s> ^name attack 00019 ^io.input-link <il>) 00020 (<il> ^radar.tank.position center 00021 ^missiles <m>) 00022 --> 00023 (<s> ^operator <o> +) 00024 (<o> ^name fire-missile 00025 ^actions.fire.weapon missile)} 00026