Method Summary |
|
__init__ (self,
projectile_class,
speed,
angle,
offset,
animation,
delay,
cooldown,
mana_cost)
|
|
fire (self,
attacker,
angle,
speed)
Perform the actual attack action. |
|
projectile_initial_pos(self,
attacker)
|
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
Return hash(x)... |
|
__new__ (T,
S,
...)
Return a new object with type S, a subtype of T... |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__repr__ (x)
Return repr(x)... |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
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. |
Inherited from AttackType |
|
animation : The base name of the animation that the agent's sprite should display
when using this attack. |
|
cooldown : The minimum amount of time that can elapse between using this attack
and starting the next attack. |
|
delay : The amount of time that the agent should wait after it starts playing
the animation before performing the attack action with
fire . |