diff --git a/docs/idabot.rst b/docs/idabot.rst index f75191563a44a87b9bb97678a7864fa365152723..31864ba8000e44e0002e2c8bcaef839057a34066 100644 --- a/docs/idabot.rst +++ b/docs/idabot.rst @@ -64,3 +64,5 @@ IDABot .. autoattribute:: current_supply .. autoattribute:: max_supply + + .. autoattribute:: current_frame diff --git a/docs/unit.rst b/docs/unit.rst index b5e94e274ccf8c9e37afaf2f3a852dde363f4adb..f4debdf359ed50ac6204d74becfb393e07becd35 100644 --- a/docs/unit.rst +++ b/docs/unit.rst @@ -25,6 +25,10 @@ Unit .. autoattribute:: hit_points .. autoattribute:: id .. autoattribute:: is_alive + .. autoattribute:: is_blip + + Returns true if unit is a "blip" - a ping on the map. + .. autoattribute:: is_being_constructed Returns build_progress > 0 @@ -52,6 +56,10 @@ Unit .. autoattribute:: unit_type .. autoattribute:: weapon_cooldown + .. attribute:: Unit.target + + Returns target if unit has one, otherwise will fail the assertion (make sure not to call this unless certain that the unit has a target!). + Methods: .. automethod:: stop @@ -68,4 +76,7 @@ Unit .. automethod:: train .. automethod:: research .. automethod:: morph + .. method:: Unit.has_target + + Returns True if the target has a valid target and False otherwise.