def step(self, time_delta): """Performs actions every frame Args: time_delta: Time that passed since the last call """ Mode.step(self, time_delta)
def __init__(self, engine, view, model, application): ''' Constructor @param engine: Instance of the active fife engine @type engine: fife.Engine @param view: Instance of a GameSceneView @param type: parpg.GameSceneView @param model: The model that has the current gamestate @type model: parpg.GameModel @param application: The application that created this controller @type application: parpg.PARPGApplication @param settings: The current settings of the application @type settings: fife.extensions.fife_settings.Setting ''' KeyListener.__init__(self, application.event_listener) MouseListener.__init__(self, application.event_listener) CommandListener.__init__(self, application.event_listener) Mode.__init__(self, engine) self.event_manager = engine.getEventManager() self.view = view self.model = model self.application = application
def __init__(self, view, application): Mode.__init__(self, application.engine) self.view = view self.application = application
def __init__(self, engine): Mode.__init__(self, engine) BaseWorld.__init__(self)