| |
- pygame.sprite.OrderedUpdates(pygame.sprite.RenderUpdates)
-
- HUD
- pygame.sprite.Sprite(__builtin__.object)
-
- Stat
- Statf
class HUD(pygame.sprite.OrderedUpdates) |
| |
- Method resolution order:
- HUD
- pygame.sprite.OrderedUpdates
- pygame.sprite.RenderUpdates
- pygame.sprite.Group
- pygame.sprite.AbstractGroup
- __builtin__.object
Methods defined here:
- __init__(self)
- add(self, *args)
- args: name, stat
- draw(self, dt=0, surface=None)
- next_pos(self)
- remove(self, *sprites)
- remove sprites by name or sprite object
- update(self, dt)
Data descriptors defined here:
- bottom
- visible
Methods inherited from pygame.sprite.OrderedUpdates:
- add_internal(self, sprite)
- remove_internal(self, sprite)
- sprites(self)
Methods inherited from pygame.sprite.AbstractGroup:
- __contains__(self, sprite)
- __iter__(self)
- __len__(self)
- len(group)
number of sprites in group
Returns the number of sprites contained in the group.
- __nonzero__(self)
- __repr__(self)
- clear(self, surface, bgd)
- clear(surface, bgd)
erase the previous position of all sprites
Clears the area of all drawn sprites. the bgd
argument should be Surface which is the same
dimensions as the surface. The bgd can also be
a function which gets called with the passed
surface and the area to be cleared.
- copy(self)
- copy()
copy a group with all the same sprites
Returns a copy of the group that is the same class
type, and has the same sprites in it.
- empty(self)
- empty()
remove all sprites
Removes all the sprites from the group.
- has(self, *sprites)
- has(sprite or group, ...)
ask if group has a sprite or sprites
Returns true if the given sprite or sprites are
contained in the group. You can also use 'sprite in group'
or 'subgroup in group'.
- has_internal(self, sprite)
Data descriptors inherited from pygame.sprite.AbstractGroup:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Stat(pygame.sprite.Sprite) |
|
a HUD stat with plain string |
|
- Method resolution order:
- Stat
- pygame.sprite.Sprite
- __builtin__.object
Methods defined here:
- __init__(self, pos, text=None, callback=None, interval=2.0, font=<pygame.font.Font object>)
- set_value(self, text)
- update(self, dt)
Methods inherited from pygame.sprite.Sprite:
- __repr__(self)
- add(self, *groups)
- add the sprite to groups
Sprite.add(*groups): return None
Any number of Group instances can be passed as arguments. The
Sprite will be added to the Groups it is not already a member of.
- add_internal(self, group)
- alive(self)
- does the sprite belong to any groups
Sprite.alive(): return bool
Returns True when the Sprite belongs to one or more Groups.
- groups(self)
- list of Groups that contain this Sprite
Sprite.groups(): return group_list
Return a list of all the Groups that contain this Sprite.
- kill(self)
- remove the Sprite from all Groups
Sprite.kill(): return None
The Sprite is removed from all the Groups that contain it. This won't
change anything about the state of the Sprite. It is possible to continue
to use the Sprite after this method has been called, including adding it
to Groups.
- remove(self, *groups)
- remove the sprite from groups
Sprite.remove(*groups): return None
Any number of Group instances can be passed as arguments. The Sprite will
be removed from the Groups it is currently a member of.
- remove_internal(self, group)
Data descriptors inherited from pygame.sprite.Sprite:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|
class Statf(pygame.sprite.Sprite) |
|
a HUD stat with formatted string |
|
- Method resolution order:
- Statf
- pygame.sprite.Sprite
- __builtin__.object
Methods defined here:
- __init__(self, pos, fmt, value=None, callback=None, interval=2.0, font=<pygame.font.Font object>)
- set_value(self, value)
- update(self, dt)
Methods inherited from pygame.sprite.Sprite:
- __repr__(self)
- add(self, *groups)
- add the sprite to groups
Sprite.add(*groups): return None
Any number of Group instances can be passed as arguments. The
Sprite will be added to the Groups it is not already a member of.
- add_internal(self, group)
- alive(self)
- does the sprite belong to any groups
Sprite.alive(): return bool
Returns True when the Sprite belongs to one or more Groups.
- groups(self)
- list of Groups that contain this Sprite
Sprite.groups(): return group_list
Return a list of all the Groups that contain this Sprite.
- kill(self)
- remove the Sprite from all Groups
Sprite.kill(): return None
The Sprite is removed from all the Groups that contain it. This won't
change anything about the state of the Sprite. It is possible to continue
to use the Sprite after this method has been called, including adding it
to Groups.
- remove(self, *groups)
- remove the sprite from groups
Sprite.remove(*groups): return None
Any number of Group instances can be passed as arguments. The Sprite will
be removed from the Groups it is currently a member of.
- remove_internal(self, group)
Data descriptors inherited from pygame.sprite.Sprite:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |