Public Member Functions | |
| def | __init__ |
| def | setSurf |
| def | updatePics |
| def | updateMap |
| def | clipOffset |
| def | updateVisibleScene |
| def | draw |
| def | handleKey |
| def | moveView |
| def | cellToPoint |
| def | pointToCell |
| def | rotate |
| def | flatten |
| def | update_angles |
Public Attributes | |
| world | |
| offY | |
| movSpeedY | |
| angle | |
| flattening | |
| angleX | |
| angleY | |
| cellWidth | |
| map | |
| perso | |
| showLov | |
| follow | |
| active | |
| pics | |
| imgs | |
| surf | |
| maxHeight | |
| nbCellsX | |
| nbCellsY | |
| offX | |
| shown | |
| movSpeedX | |
Manages the map display
| def interface.pgcli.MapView.cellToPoint | ( | self, | |
| x, | |||
| y | |||
| ) |
Convert cell related coordinates to map coordinates
| def interface.pgcli.MapView.clipOffset | ( | self | ) |
Ensure the offX, offY lead to a valid display
| def interface.pgcli.MapView.draw | ( | self, | |
deltat = 0 |
|||
| ) |
Blit visible items of the map on Surface self.surf
| def interface.pgcli.MapView.flatten | ( | self, | |
| step | |||
| ) |
Flattens the map
@param step the flattening step to be applied, may be negative
| def interface.pgcli.MapView.handleKey | ( | self, | |
| key | |||
| ) |
return true if key has been handled else false
| def interface.pgcli.MapView.moveView | ( | self, | |
| deltat | |||
| ) |
Move view with accelerations if the mouse is on an edge
| def interface.pgcli.MapView.pointToCell | ( | self, | |
| x, | |||
| y | |||
| ) |
Convert map coordinates to cell related coordinates
| def interface.pgcli.MapView.rotate | ( | self, | |
| step | |||
| ) |
Rotates the map
@param step the angle step to be applied, may be negative
| def interface.pgcli.MapView.setSurf | ( | self, | |
| surf | |||
| ) |
Called when scene is initialised or reshaped
| def interface.pgcli.MapView.update_angles | ( | self | ) |
Updates the anglesX/Y according to angle and flattening parameters
| def interface.pgcli.MapView.updateMap | ( | self | ) |
sets current map to what it should be
| def interface.pgcli.MapView.updatePics | ( | self | ) |
Fill the picture dictionnary using current angles and zoom
| def interface.pgcli.MapView.updateVisibleScene | ( | self | ) |
Updates self.shown, a list of visible cells
1.7.6.1