Home | Trees | Index | Help |
---|
Package pygsear :: Module Drawable :: Class Stationary |
|
object
--+ |Sprite
--+ |Drawable
--+ | Stationary
StationaryButton
Drawable things which never move.
These will be drawn directly on to the background, and the background underneath will be saved for easy restoration later.
Using aStationary
sprite instead will save resources
since they do not need to be redrawn each frame.
Method Summary | |
---|---|
Initialize the sprite. | |
a new object with type S, a subtype of T |
|
__repr__(self)
(inherited from Sprite )
| |
add(group) add a sprite to container (inherited from Sprite )
| |
add_internal(self,
group)
(inherited from Sprite )
| |
alive() -> bool ask the life of a sprite (inherited from Sprite )
| |
bool |
Performs a los (line of sight) check from the center of the source to the center of the target. (inherited from Drawable )
|
Align the Drawable in its layer (inherited from Drawable )
| |
Blit saved background to both background and foreground. | |
bool
|
return True if this sprite and other sprite overlap. (inherited from Drawable )
|
Drawable or False
|
return True if this sprite and any in list of others collide. (inherited from Drawable )
|
List
|
return True if this sprite and any in list of others collide. (inherited from Drawable )
|
return the direction from the sprite to a point (inherited from Drawable )
| |
return the distance from the sprite to a point (inherited from Drawable )
| |
Blit image to both background and foreground. | |
Return current position | |
return size of sprite's rect. (inherited from Drawable )
| |
groups() -> list list used sprite containers (inherited from Sprite )
| |
kill() end life of sprite, remove from all groups (inherited from Sprite )
| |
Does nothing. | |
Move sprite. (inherited from Drawable )
| |
return True if image is on the screen or layer. (inherited from Drawable )
| |
stop moving along Path (inherited from Drawable )
| |
Save a copy of the background underneath where the sprite will be drawn. | |
remove(group) remove a sprite from container (inherited from Sprite )
| |
remove_internal(self,
group)
(inherited from Sprite )
| |
call move() continuously (inherited from Drawable )
| |
set the collision pygame.Rect used for collision
checking. (inherited from Drawable )
| |
set which path to follow (inherited from Drawable )
| |
Move the sprite. | |
Move sprite to a random location on screen (inherited from Drawable )
| |
Set size of sprite's rect. (inherited from Drawable )
| |
move sprite so that it does not overlap with other sprite (inherited from Drawable )
| |
clear sprite and update display (inherited from Drawable )
| |
Draw image and update display. (inherited from Drawable )
| |
start moving along Path (inherited from Drawable )
| |
update(self,
*args)
(inherited from Sprite )
|
Method Details |
---|
__init__(self,
w=None,
sprite=None)
Initialize the sprite.
|
__new__(S, ...)
|
clear(self)Blit saved background to both background and foreground. |
draw(self)Blit image to both background and foreground. |
get_position(self)Return current position |
move(self)Does nothing. Useful if you want to be able to call move() on a whole group of sprites without checking to see if they want to move or not. |
prepare(self)Save a copy of the background underneath where the sprite will be drawn. |
set_position(self, position)Move the sprite. Clears out old position and re-draws at new position. |
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Nov 30 19:33:11 2003 | http://epydoc.sf.net |