mkRPG
 All Classes Namespaces Functions
Public Member Functions | Public Attributes
interface.pgcli.MapView Class Reference

List of all members.

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

Detailed Description

Manages the map display 

Member Function Documentation

def interface.pgcli.MapView.cellToPoint (   self,
  x,
  y 
)
Convert cell related coordinates to map coordinates 
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 
Updates the anglesX/Y according to angle and flattening parameters 
sets current map to what it should be 
Fill the picture dictionnary using current angles and zoom 
Updates self.shown, a list of visible cells 

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions