Method Summary |
|
__init__(self,
window)
|
|
clear (self)
Erase sprite to background |
|
direction (self,
rect)
return the direction from the sprite to a point |
|
distance (self,
rect)
return the distance from the sprite to a point |
|
draw (self)
Blit image to layer |
|
move(self)
|
|
onscreen (self,
slack,
**kw)
return True if image is on the screen or layer. |
|
pause(self)
|
|
udraw (self)
Draw image and update display. |
|
unpause(self)
|
|
_get_ax(self)
|
|
_get_ay(self)
|
|
_get_bottom(self)
|
|
_get_center(self)
|
|
_get_centerx(self)
|
|
_get_centery(self)
|
|
_get_image(self)
|
|
_get_left(self)
|
|
_get_position(self)
|
|
_get_right(self)
|
|
_get_size(self)
|
|
_get_top(self)
|
|
_get_topleft(self)
|
|
_get_vx(self)
|
|
_get_vy(self)
|
|
_set_ax(self,
ax)
|
|
_set_ay(self,
ay)
|
|
_set_bottom(self,
bottom)
|
|
_set_center(self,
center)
|
|
_set_centerx(self,
centerx)
|
|
_set_centery(self,
centery)
|
|
_set_image(self,
image)
|
|
_set_left(self,
left)
|
|
_set_position(self,
position)
|
|
_set_right(self,
right)
|
|
_set_size(self,
size)
|
|
_set_top(self,
top)
|
|
_set_topleft(self,
topleft)
|
|
_set_vx(self,
vx)
|
|
_set_vy(self,
vy)
|
Inherited from Sprite |
|
__repr__ (self)
|
|
add (self,
*groups)
add(group or list of of groups, ...) add a sprite to container |
|
add_internal (self,
group)
|
|
alive (self)
alive() -> bool check to see if the sprite is in any groups |
|
groups (self)
groups() -> list of groups list used sprite containers |
|
kill (self)
kill() remove this sprite from all groups |
|
remove (self,
*groups)
remove(group or list of groups, ...) remove a sprite from
container |
|
remove_internal (self,
group)
|
|
update (self,
*args)
|
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |
Inherited from type |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |