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

Type FlashPants

 object --+    
          |    
PajamaPiece --+
              |
             FlashPants


Method Summary
  disrobe(self)
This method is called whenever the avatar takes off this pajama piece.
  start(self)
This method is called whenever the player presses the key to use this pajama piece's power.
  stop(self)
This method is called whenever the player releases the key to use this pajama piece's power.
  wear(self)
This method is called whenever the avatar puts on this pajama piece.
    Inherited from PajamaPiece
  __init__(self, avatar)
  current_animation(self)
  handle_collision(self, obstacle, side)
Called when the avatar collides with something
  handle_lose_support(self, old_support)
Called when the avatar loses support
  icon(cls)
(Class method)
  play_animation(self, name, speed)
  register(cls)
(Class method)
  update(self, duration)
Called periodically
    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
    Inherited from PajamaPiece
bool active: True when the user is pressing the key for this pajama.
NoneType animation: The name of the animation mode that is currently being played; this will override the default animation modes (eg walk and jump).
NoneType animation_speed: The speed for the animation mode that is currently being played; this will override the default animation speed.

Class Variable Summary
str descr = 'Your flash pants are covered with cool\n       ...
NoneType is_shirt: If true, then it's a pajama shirt; if false, then it's a pajama pants.
str name = 'Flash pants'
str sprite_category = 'FlashPants'
    Inherited from PajamaPiece
dict classes = {'BlueTShirt': <class 'pajammin.entity.agent.a...

Instance Method Details

disrobe(self)

This method is called whenever the avatar takes off this pajama piece. If the pajama piece provides the user with any special effects, they are generally removed here. By default, disrobe() does nothing.
Overrides:
pajammin.entity.agent.avatar.PajamaPiece.disrobe (inherited documentation)

start(self)

This method is called whenever the player presses the key to use this pajama piece's power.
Overrides:
pajammin.entity.agent.avatar.PajamaPiece.start (inherited documentation)

stop(self)

This method is called whenever the player releases the key to use this pajama piece's power.
Overrides:
pajammin.entity.agent.avatar.PajamaPiece.stop (inherited documentation)

wear(self)

This method is called whenever the avatar puts on this pajama piece. If the pajama piece provides the user with any special effects, they are generally applied here. By default, wear() does nothing.
Overrides:
pajammin.entity.agent.avatar.PajamaPiece.wear (inherited documentation)

Class Variable Details

descr

Type:
str
Value:
'''Your flash pants are covered with cool
                looking lightning bolts.  When you put them on,
                everything else seems to start moving slower. 
                You can activate them for an extra speed boost.'''     

is_shirt

If true, then it's a pajama shirt; if false, then it's a pajama pants.
Type:
NoneType
Value:
False                                                                  

name

Type:
str
Value:
'Flash pants'                                                          

sprite_category

Type:
str
Value:
'FlashPants'