| Home | Trees | Index | Help |
|---|
|
|
object--+ |Entity--+ |Projectile--+ | Fireball
| Method Summary | |
|---|---|
__init__(self,
attacker,
x,
y,
xvel,
yvel)
| |
explode(self,
side)
| |
Called when one of the entity's bodies collides with another body. | |
shoot_spark(self)
| |
Perform any necessary updates to this entity. | |
| Inherited from Projectile | |
Apply this projectile's effect to the given agent. | |
| |
| Inherited from Entity | |
| |
| |
| |
After the given duration has elapsed, call the given callback function. | |
Called when one of the entity's bodies becomes unsupported. | |
Called when one of the entity's bodies moves. | |
Return an image that can be used as an icon for this entity class. (Class method) | |
| |
| |
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 Entity | |
bodies | |
sprites | |
| Instance Variable Summary | |
|---|---|
| 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 | |
|---|---|
NoneType |
damage: The amount of damage that is inflicted by this class of
projectile. |
NoneType |
damage_type: The type of damage inflicted by this class of projectile, such as
PHYSICAL or FIRE. |
float |
EXPLODE_CHANCE = 0.5 |
int |
EXPLODE_SPARKS = 6 |
tuple |
size = (4, 4)
|
float |
SPARK_CHANCE = 0.10000000000000001 |
str |
sprite_category = 'Fireball'
|
float |
yaccel = 360.0 |
| Inherited from Projectile | |
NoneType |
hit_sprite = None |
NoneType |
miss_sprite = None |
| Inherited from Entity | |
bool |
autouse = False
|
bool |
is_usable = False
|
int |
update_interval: The interval at which entities in a given class should have its update
function called. |
| Instance Method Details |
|---|
__init__(self,
attacker,
x,
y,
xvel,
yvel)
|
explode(self, side) |
handle_collision(self, obstacle, side)Called when one of the entity's bodies collides with another body. By default, this does nothing.
|
shoot_spark(self) |
update(self, duration)Perform any necessary updates to this entity. By default, this does nothing.
|
| Class Variable Details |
|---|
damage_typeThe type of damage inflicted by this class of projectile, such asPHYSICAL or FIRE. If the projectile class has
multiple damage types, then simply and the flags for each damage type
together.
|
EXPLODE_CHANCE
|
EXPLODE_SPARKS
|
size
|
SPARK_CHANCE
|
sprite_category
|
yaccel
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Sep 22 22:52:45 2005 | http://epydoc.sf.net |