Package scripts :: Script mainmenucontroller :: Class MainMenuController
[hide private]
[frames] | no frames]

Class MainMenuController

source code

                                       object --+        
                                                |        
        common.listeners.key_listener.KeyListener --+    
                                                    |    
                                       object --+   |    
                                                |   |    
    common.listeners.mouse_listener.MouseListener --+    
                                                    |    
                                       object --+   |    
                                                |   |    
common.listeners.command_listener.CommandListener --+    
                                                    |    
                        controllerbase.ControllerBase --+
                                                        |
                                                       MainMenuController

Controller for handling the main menu state

Instance Methods [hide private]
 
__init__(self, engine, view, model, application)
Constructor
source code
 
newGame(self)
Start a new game and switch to the character creation controller.
source code
 
loadGame(self, *args, **kwargs)
Loads the game state
source code
 
onStop(self)
Called when the controller is removed from the list
source code
 
quitGame(self)
Quits the game
source code

Inherited from controllerbase.ControllerBase: pause, pump, resetMouseCursor, setMouseCursor

Inherited from common.listeners.key_listener.KeyListener: attach, detach, keyPressed, keyReleased

Inherited from common.listeners.mouse_listener.MouseListener: mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMovedDown, mouseWheelMovedUp

Inherited from common.listeners.command_listener.CommandListener: onCommand

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, view, model, application)
(Constructor)

source code 

Constructor

Parameters:
  • engine - Instance of the active fife engine
  • view - Instance of a GameSceneView
  • type - scripts.GameSceneView
  • model - The model that has the current gamestate
  • application - The application that created this controller
  • settings - The current settings of the application
Overrides: object.__init__

loadGame(self, *args, **kwargs)

source code 

Loads the game state

Returns:
None

onStop(self)

source code 

Called when the controller is removed from the list

Overrides: controllerbase.ControllerBase.onStop

quitGame(self)

source code 

Quits the game

Returns:
None