Package parpg :: Module gamemap :: Class GameMap
[hide private]
[frames] | no frames]

Class GameMap

source code

fife.fife.MapChangeListener --+
                              |
                             GameMap

Map class used to flag changes in the map

Instance Methods [hide private]
 
__init__(self, engine, model) source code
 
reset(self)
Reset the model to default settings.
source code
 
makeActive(self)
Makes this map the active one.
source code
 
load(self, filename)
Load a map given the filename.
source code
 
addPC(self)
Add the player character to the map
source code
 
toggleRenderer(self, r_name)
Enable or disable a renderer.
source code
 
isPaused(self)
Returns wheter the map is currentply paused or not
source code
 
pause(self, paused)
Pause/Unpause the game.
source code
 
togglePause(self)
Toggle paused state.
source code
 
centerCameraOnPlayer(self)
Center the camera on the player
source code
Method Details [hide private]

reset(self)

source code 

Reset the model to default settings.

Returns:
None

makeActive(self)

source code 

Makes this map the active one.

Returns:
None

load(self, filename)

source code 

Load a map given the filename.

Parameters:
  • filename (String) - Name of map to load
Returns:
None

addPC(self)

source code 

Add the player character to the map

Returns:
None

toggleRenderer(self, r_name)

source code 

Enable or disable a renderer.

Returns:
None

pause(self, paused)

source code 

Pause/Unpause the game.

Returns:
nothing

togglePause(self)

source code 

Toggle paused state.

Returns:
nothing