Home | Trees | Index | Help |
---|
|
object
--+
|
PajamaPiece
AngelShirt
,
BlueTShirt
,
CowPants
,
CowShirt
,
DoctorShirt
,
FlashPants
,
HalflingShorts
,
KaratePants
,
KarateShirt
,
PhaseShirt
,
PowerAttackPajamaPiece
,
RedBoxers
,
SpideyPants
,
StarShirt
,
TiggerPants
Method Summary | |
---|---|
__init__(self,
avatar)
| |
current_animation(self)
| |
This method is called whenever the avatar takes off this pajama piece. | |
Called when the avatar collides with something | |
Called when the avatar loses support | |
icon(cls)
(Class method) | |
play_animation(self,
name,
speed)
| |
register(cls)
(Class method) | |
This method is called whenever the player presses the key to use this pajama piece's power. | |
This method is called whenever the player releases the key to use this pajama piece's power. | |
Called periodically | |
This method is called whenever the avatar puts on this pajama piece. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
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 | |
---|---|
dict |
classes = {'BlueTShirt': <class 'pajammin.entity.agent.a...
|
NoneType |
descr = None |
NoneType |
is_shirt : If true, then it's a pajama shirt; if false, then it's a pajama
pants. |
NoneType |
name = None |
NoneType |
sprite_category = None |
Instance Method Details |
---|
__init__(self,
avatar)
|
current_animation(self) |
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.
|
handle_collision(self, obstacle, side)Called when the avatar collides with something |
handle_lose_support(self, old_support)Called when the avatar loses support |
play_animation(self, name='action', speed=1) |
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. |
update(self, duration)Called periodically |
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.
|
Class Method Details |
---|
icon(cls) |
register(cls) |
Instance Variable Details |
---|
activeTrue when the user is pressing the key for this pajama.
|
animationThe name of the animation mode that is currently being played; this will override the default animation modes (eg walk and jump).
|
animation_speedThe speed for the animation mode that is currently being played; this will override the default animation speed.
|
Class Variable Details |
---|
descr
|
is_shirtIf true, then it's a pajama shirt; if false, then it's a pajama pants.
|
name
|
sprite_category
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:44 2005 | http://epydoc.sf.net |