Home | Trees | Index | Help |
---|
|
object
--+ |AttackType
--+ | ProjectileAttack
SprayAttack
Projectile
.
Method Summary | |
---|---|
| |
Perform the actual attack action. | |
projectile_initial_pos(self,
attacker)
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
angle : The default angle at which to fire the projectile. | |
offset : A tuple (i,j) , describing the initial position for the
projectile. | |
projectile_class : The subclass of Projectile that should be used to create
the projectile launched by this attack. | |
speed : The default speed with which to fire the projectile. |
Method Details |
---|
__init__(self,
projectile_class,
speed=200,
angle=45,
offset=(0, 0),
animation=None,
delay=0,
cooldown=0,
mana_cost=0)
|
fire(self, attacker, angle=None, speed=None)Perform the actual attack action. This method does not perform any animations or start the agent's cooldown timer.
|
projectile_initial_pos(self, attacker) |
Instance Variable Details |
---|
angleThe default angle at which to fire the projectile. This can be overridden when making an actual attack. |
projectile_classThe subclass ofProjectile that should be used to create
the projectile launched by this attack.
|
speedThe default speed with which to fire the projectile. This can be overridden when making an actual attack. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:46 2005 | http://epydoc.sf.net |