Home | Trees | Index | Help |
---|
|
object
--+ |ScreenWidget
--+ | LevelMap
Method Summary | |
---|---|
__init__(self,
x,
y,
level,
anchor,
max_width,
max_height,
border,
alpha)
| |
Draw this widget to the screen. | |
draw_border(self,
surface)
| |
explore(self,
rect)
| |
render(self)
| |
render_fog(self)
| |
render_map(self)
| |
Figure out the scale factor, dx, dy, and rect that are appropriate for this level. | |
set_level(self,
level)
| |
set_viewport(self,
viewport)
| |
Return the average color of the top 1/10th of the current level's background image. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
Return hash(x)... | |
Return a new object with type S, a subtype of T... | |
helper for pickle | |
helper for pickle | |
Return repr(x)... | |
x.__setattr__('name', value) <==> x.name = value | |
Return str(x)... |
Instance Variable Summary | |
---|---|
fog_image : The fog overlay image | |
bool |
hidden : If true, then the screen widget will not be drawn. |
layer : An integer indicating the order in which the widget should be drawn to
the screen, relative to other widgets. | |
map_image : The map image | |
viewport_mask : Viewport overlay image. |
Class Variable Summary | |
---|---|
bool |
fog = True
|
tuple |
map_entities = (<class 'pajammin.entity.environ.Platform...
|
Method Details |
---|
__init__(self,
x,
y,
level,
anchor='topleft',
max_width=400,
max_height=300,
border=(0, 255, 255),
alpha=None)
|
draw(self, screen, duration)Draw this widget to the screen.
|
draw_border(self, surface) |
explore(self, rect) |
render(self) |
render_fog(self) |
render_map(self) |
resize(self, level)Figure out the scale factor, dx, dy, and rect that are appropriate for this level. |
set_level(self, level) |
set_viewport(self, viewport) |
skycolor(self)Return the average color of the top 1/10th of the current level's background image. |
Instance Variable Details |
---|
fog_imageThe fog overlay image |
hiddenIf true, then the screen widget will not be drawn.
|
layerAn integer indicating the order in which the widget should be drawn to the screen, relative to other widgets. Widgets with higher layer numbers will be drawn later.
|
map_imageThe map image [XX] fog locations should be recorded in the level, not here! |
viewport_maskViewport overlay image. |
Class Variable Details |
---|
fog
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Sep 22 22:52:42 2005 | http://epydoc.sf.net |