| Home | Trees | Index | Help |
|---|
|
|
object--+ |Entity--+ |Platform--+ | BouncyPlatform
| Method Summary | |
|---|---|
__init__(self,
x,
y,
numtiles,
sprite_category)
| |
Called when one of the entity's bodies collides with another body. | |
update(self,
interval)
| |
| Inherited from Platform | |
Called when one of the entity's bodies moves. | |
(Class method) | |
| Inherited from Entity | |
| |
| |
| |
After the given duration has elapsed, call the given callback function. | |
Called when one of the entity's bodies becomes unsupported. | |
| |
| |
Define this method for entities that the avatar can 'use'. | |
| 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 | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... | |
| Property Summary | |
|---|---|
| Inherited from Platform | |
numtiles: The number of tiles that make up this platform. | |
tile_height: The height of the sprite tiles that make up this platform. | |
tile_width: The width of the sprite tiles that make up this platform. | |
x: The x position of the center of the platform. | |
y: The y position of the center of the platform. | |
| Inherited from Entity | |
bodies | |
sprites | |
| Instance Variable Summary | |
|---|---|
home_y: The 'home' y coordinate for this bouncy platform -- it will return to
this position after you bounce on it. | |
| Inherited from Entity | |
bool |
alive: A flag indicating whether the entity is alive or not. |
bodies = pajammin.entity.entity.Entity.bodies | |
NoneType |
level: A pointer to the level that contains this entity (if any). |
sprites = pajammin.entity.entity.Entity.sprites | |
NoneType |
update_delay: The amount of time that has elapsed since the last time update was
called for this entity. |
| Class Variable Summary | |
|---|---|
bool |
is_mobile = True
|
int |
update_interval: The interval at which entities in a given class should have its update
function called. |
| Inherited from Platform | |
tuple |
margin = (10, 0)
|
tuple |
p = ('TwigPlatform', 'environ/plat10.gif', (30, 20), 5)
|
int |
solid_sides = 4 |
list |
styles = ['GrassPlatform', 'SmoothBluePlatform', 'Smooth...
|
| Inherited from Entity | |
bool |
autouse = False
|
bool |
is_usable = False
|
| Instance Method Details |
|---|
__init__(self,
x,
y,
numtiles,
sprite_category)
|
handle_collision(self, obstacle, side)Called when one of the entity's bodies collides with another body. By default, this does nothing.
|
update(self, interval)
|
| Instance Variable Details |
|---|
home_yThe 'home' y coordinate for this bouncy platform -- it will return to this position after you bounce on it. |
| Class Variable Details |
|---|
is_mobile
|
update_intervalThe interval at which entities in a given class should have its update function called.
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 22 22:52:47 2005 | http://epydoc.sf.net |