|
|
|
|
|
|
|
|
|
_move_and_attack(self,
destination,
not_possible_action=None,
in_range_callback=None)
Callback for moving to a destination, then attack |
source code
|
|
|
|
|
set_stance(self,
stance)
Sets the stance to a specific one and passes the current state |
source code
|
|
|
|
|
|
|
|
|
user_attack(self,
targetid)
Called when the user triggeres the attack, executes the
user_attack_issued callbacks |
source code
|
|
|
_add_to_fireable(self,
weapon)
Callback executed when weapon attack is ready |
source code
|
|
|
_increase_fired_weapons_number(self,
caller=None)
Callback that helps keeping tack of successful weapon fire number |
source code
|
|
|
_remove_from_fireable(self,
weapon)
Callback executed when weapon is fired |
source code
|
|
|
act_attack(self,
dest)
Override in subclasses for action code |
source code
|
|
|
|
|
|
|
attack_in_range(self)
Returns True if the target is in range, False otherwise |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
get_status(self)
Return the current status of the ship. |
source code
|
|
|
get_weapon_storage(self)
Returns storage object for self._weapon_storage |
source code
|
|
|
is_attacking(self)
Returns True if the WeaponHolder is trying to attack a target |
source code
|
|
|
load_target(self,
db)
Loads target from database |
source code
|
|
|
|
|
remove_target(self)
Removes reference from target, this happens when the attack is
stopped or the target is dead either way the refs are checked using
gc module this is used because after unit death it's possbile that it
still has refs |
source code
|
|
|
|
|
|
|
|
|
|