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

Type ImmobilizeEffect

object --+    
         |    
    Effect --+
             |
            ImmobilizeEffect

Known Subclasses:
WebEffect

A effect that immobilizes the target.
Method Summary
  affect(self, agent)
Make this effect's change to the given agent's fixed properties.
    Inherited from Effect
  __init__(self)
    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.
NoneType duration: How much longer should this effect be active? Use None for effects that don't expire after a fixed time.
    Inherited from Effect
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

affect(self, agent)

Make this effect's change to the given agent's fixed properties.
Overrides:
pajammin.entity.agent.agent.Effect.affect (inherited documentation)

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:
['walk_speed', 'jump_speed', 'flight_speed']                           

duration

How much longer should this effect be active? Use None for effects that don't expire after a fixed time.
Type:
NoneType
Value:
10000