Method Summary |
|
__init__(self,
damage_type,
damage,
size,
offset,
multi_target,
mark,
animation,
delay,
cooldown,
mana_cost)
|
|
attack_range(self,
attacker)
|
|
fire (self,
attacker,
target)
Perform the actual attack action. |
|
hit (self,
agent)
Apply this attack's effect to the given agent. |
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 |
|
damage : The amount of damage that is inflicted by this attack. |
|
damage_type : The type of damage inflicted by this attack, such as
PHYSICAL or FIRE . |
|
marker : A sprite category whose default animation should be displayed to show
that the attack was successful. |
|
multi_target : If false (the default), then the attack will only affect one target in
the the attack range; if true, then the attack will affect all targets in
the attack range. |
Area of Effect |
|
size : A tuple (i,j) , describing the size of the area in which
targets will be affected by this attack. |
|
offset : A tuple (i,j) , describing the position of the area in
which targets will be affected by this attack. |