Home | Trees | Index | Help |
---|
Package pygsear :: Module Game :: Class GameConfiguration |
|
object
--+ |Sprite
--+ |Drawable
--+ |Layer
--+ |Layer
--+ |GameLooper
--+ | GameConfiguration
Used to configure the game
Right now, this allows choice of video mode, fullscreen/window, and allows the configuration to be saved on unix systems.
Eventually, it should be possible to configure keybindings here also, and to create generalized configuration interfaces.Method Summary | |
---|---|
__init__(self,
game)
| |
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 )
| |
return a Event.EventGroup (inherited from GameLooper )
| |
return a SpriteGroup (inherited from GameLooper )
| |
return a Drawable.Layer and keep track. (inherited from GameLooper )
| |
alive() -> bool ask the life of a sprite (inherited from Sprite )
| |
beep(self)
(inherited from GameLooper )
| |
Draw a border around the screen (inherited from Layer )
| |
bool |
Performs a los (line of sight) check from the center of the source to the center of the target. (inherited from Drawable )
|
center the Drawable in its layer (inherited from Layer )
| |
Defaults to no collision checks. (inherited from GameLooper )
| |
checkEvents(self)
(inherited from GameLooper )
| |
erase image to background, returning affected rect (inherited from Layer )
| |
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 )
| |
draw image, returning affected rect (inherited from Layer )
| |
return a copy of the sprite's position (inherited from Drawable )
| |
return size of sprite's rect. (inherited from Drawable )
| |
groups() -> list list used sprite containers (inherited from Sprite )
| |
grow(self,
x,
y)
| |
kill() end life of sprite, remove from all groups (inherited from Sprite )
| |
loop(self)
| |
set position to next position on path (inherited from Drawable )
| |
Move sprite. (inherited from Drawable )
| |
return True if image is on the screen or layer. (inherited from Drawable )
| |
stop moving along Path | |
remove(group) remove a sprite from container (inherited from Sprite )
| |
remove_internal(self,
group)
(inherited from Sprite )
| |
resize1024x768(self,
arg)
| |
resize640x480(self,
arg)
| |
resize800x600(self,
arg)
| |
resize_reset(self,
arg)
| |
call move() continuously (inherited from Drawable )
| |
save_config(self,
arg)
| |
Set the background. (inherited from Layer )
| |
set the collision pygame.Rect used for collision
checking. (inherited from Drawable )
| |
set which path to follow (inherited from Drawable )
| |
Move sprite to location. (inherited from Drawable )
| |
Move sprite to a random location on screen (inherited from Drawable )
| |
Set size of sprite's rect. (inherited from Drawable )
| |
show_video_modes(self)
| |
Resize the window (smaller) | |
move sprite so that it does not overlap with other sprite (inherited from Drawable )
| |
toggle_fullscreen(self,
arg)
| |
clear sprite and update display (inherited from Drawable )
| |
Draw image and update display. (inherited from Drawable )
| |
start moving along Path | |
update(self,
*args)
(inherited from Sprite )
| |
move and re-draw all the sprites that use this layer (inherited from Layer )
| |
set the .quit attribute. (inherited from GameLooper )
| |
Move sprite to location. (inherited from Drawable )
| |
set the .stop attribute. (inherited from GameLooper )
|
Method Details |
---|
__new__(S, ...)
|
pause(self)stop moving along Path
|
shrink(self, x=50, y=50)Resize the window (smaller)
|
unpause(self)start moving along Path
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Sun Nov 30 19:33:14 2003 | http://epydoc.sf.net |