| Home | Trees | Index | Help |
|---|
|
|
object--+ |AttackType--+ |ProjectileAttack--+ | SprayAttack
Projectiles.
| Method Summary | |
|---|---|
__init__(self,
projectile_class,
speed,
angle,
offset,
particles,
angle_spread,
speed_spread,
animation,
delay,
cooldown,
mana_cost)
| |
Perform the actual attack action. | |
| Inherited from ProjectileAttack | |
| |
| 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 | |
|---|---|
| Inherited from ProjectileAttack | |
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=0,
offset=(0, 0),
particles=10,
angle_spread=60,
speed_spread=50,
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.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 22 22:52:44 2005 | http://epydoc.sf.net |