Package parpg :: Module gamesceneview :: Class GameSceneView
[hide private]
[frames] | no frames]

Class GameSceneView

source code

       object --+    
                |    
viewbase.ViewBase --+
                    |
                   GameSceneView

GameSceneView is responsible for drawing the scene

Instance Methods [hide private]
 
__init__(self, engine, model)
Constructor for GameSceneView
source code
 
displayObjectText(self, obj_id, text, time=1000)
Display on screen the text of the object over the object.
source code
 
onWalk(self, click)
Callback sample for the context menu.
source code
 
refreshTopLayerTransparencies(self)
Fade or unfade TopLayer instances if the PlayerCharacter is under them.
source code
 
highlightFrontObject(self, mouse_coords)
Highlights the object that is at the current mouse coordinates
source code
 
moveCamera(self, direction)
Move the camera in the given direction.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, engine, model)
(Constructor)

source code 

Constructor for GameSceneView

Parameters:
  • engine (fife.Engine) - A fife.Engine instance
  • model (script.GameModel) - a script.GameModel instance
Overrides: object.__init__

displayObjectText(self, obj_id, text, time=1000)

source code 

Display on screen the text of the object over the object.

Parameters:
  • obj - id of object to draw over
  • text (String) - text to display over object
  • obj_id (id of fife.instance)
Returns:
None

moveCamera(self, direction)

source code 

Move the camera in the given direction.

Parameters:
  • direction (list of two integers) - the two integers can be 1, -1, or 0
Returns:
None