Package pajammin :: Package entity :: Package agent :: Module agent :: Class ManaDrain
[show private | hide private]
[frames | no frames]

Type ManaDrain

object --+    
         |    
    Effect --+
             |
            ManaDrain


Method Summary
  __init__(self, mana_cost)
    Inherited from Effect
  affect(self, agent)
Make this effect's change to the given agent's fixed properties.
    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)...

Class Variable Summary
NoneType affected_properties: A list of names of the fixed properties that this effect affects.
    Inherited from Effect
NoneType duration: How much longer should this effect be active? Use None for effects that don't expire after a fixed time.
int mana_cost: How much mana does it take to use this effect (mp/sec)? If mana reaches zero, the effect will automatically be cancelled.
NoneType sprite_category: The category of the sprite that should be displayed when this effect is active.

Method Details

__init__(self, mana_cost)
(Constructor)

Overrides:
pajammin.entity.agent.agent.Effect.__init__

Class Variable Details

affected_properties

A list of names of the fixed properties that this effect affects. This is used when removing the effect, to allow the agent to revert its fixed properties to their natural values.
Type:
NoneType
Value:
[]