
APT.all-test.MOUTBot.execute-mission.attack.reload.soar Maven / Gradle / Ivy
## JEL - 7/30/02
## Will reload, even if don't have ammo to reload - need to add it
# REW: 2002-09-27
# - Must be able to terminate operator if ammo never changes. Added
# condition for recognizing reload failures.
# - Should reload in any problem-space, not just attack
sp {attack*propose*reload
(state ^name << attack defend retreat >>
^io.input-link.agent.weapon
-^io.output-link.reload.error-code)
( ^selected yes
^ammo-amount 0)
-->
# (write (crlf) |Proposing operator reload...|)
( ^operator + =, >)
( ^name reload
^actions.reload true)
}
sp {apply*reload*say*weapon-dry
(state ^operator
^top-state.comm )
( ^name reload)
-->
( ^communicate )
( ^name weapon-dry)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy