Home | Trees | Index | Help |
---|
Package pygsear :: Module Drawable :: Class RotatedImage |
|
object
--+ |Sprite
--+ |Drawable
--+ |MultiImage
--+ | RotatedImage
MultiRotated
,
Turtle
Method Summary | |
---|---|
Initialize RotatedImage | |
Switch images for the sprite | |
return angle of rotation | |
set position to next position on path | |
rotate to the left by radians | |
set rotation rate to +2 | |
set rotation rate to -2 | |
set rotation rate to 0 | |
turn as quickly as possible towards a point | |
flip to the image for the current direction | |
Change which image is being shown. | |
set angle of rotation | |
set rate of rotation in radians / second | |
Inherited from MultiImage | |
add image to list of available images | |
remove image by name | |
Change the size of sprite's image, and rect. | |
Inherited from Drawable | |
bool |
Performs a los (line of sight) check from the center of the source to the center of the target. |
Align the Drawable in its layer | |
Erase sprite to background | |
bool
|
return True if this sprite and other sprite overlap. |
Drawable or False
|
return True if this sprite and any in list of others collide. |
List
|
return True if this sprite and any in list of others collide. |
return the direction from the sprite to a point | |
return the distance from the sprite to a point | |
Blit image to layer | |
return a copy of the sprite's position | |
return size of sprite's rect. | |
Move sprite. | |
return True if image is on the screen or layer. | |
stop moving along Path | |
call move() continuously | |
set the collision pygame.Rect used for collision
checking. | |
set which path to follow | |
Move sprite to location. | |
Move sprite to a random location on screen | |
Set size of sprite's rect. | |
move sprite so that it does not overlap with other sprite | |
clear sprite and update display | |
Draw image and update display. | |
start moving along Path | |
Inherited from Sprite | |
| |
add(group or list of of groups, ...) add a sprite to container | |
| |
alive() -> bool check to see if the sprite is in any groups | |
groups() -> list of groups list used sprite containers | |
kill() remove this sprite from all groups | |
remove(group or list of groups, ...) remove a sprite from container | |
| |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from type | |
T.__new__(S, ...) -> a new object with type S, a subtype of T |
Class Variable Summary | |
---|---|
Inherited from MultiImage | |
NoneType |
filenames = None |
Method Details |
---|
__init__(self,
w=None,
filename=None,
steps=4,
image=None,
colorkey=(0, 51, 0, 0),
convert=1,
cx=None,
cy=None)
Initialize RotatedImage
|
flip(self, key=None)Switch images for the sprite
|
get_rotation(self)return angle of rotation |
move(self)set position to next position on path
|
rotate(self, rad=None)rotate to the left by radians |
rotate_left(self)set rotation rate to +2 |
rotate_right(self)set rotation rate to -2 |
rotate_stop(self)set rotation rate to 0 |
rotate_towards(self, point)turn as quickly as possible towards a point |
set_closest(self)flip to the image for the current direction |
set_image(self, key)Change which image is being shown.
|
set_rotation(self, direction=None)set angle of rotation
|
set_rotationRate(self, rate)set rate of rotation in radians / second |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sat Dec 9 14:11:19 2006 | http://epydoc.sf.net |