ch.sahits.game.graphic.display.gameplay.internal
Interface ISceneHandler

All Known Implementing Classes:
AbstractSceneHandler, MarketPlaceScenehandler, PortSceneHandler

public interface ISceneHandler

this interface defines the methods of a scene handler that are accessible from outside this package

Author:
Andi Hotz, (c) Sahits GmbH, 2012 Created on Jul 17, 2012

Method Summary
 BufferedImage getImage()
          Retrieve the image that is cached with this handler
 BufferedImage init(DisplayImageDIResolver resolver)
          Initialize the images and polygons of the scene
 void updateScene(Event e, Object eventNotice, CityPlayerProxy city, IUpdatableDialog dialogUpdater)
          Update the scene based on an event.
 

Method Detail

init

BufferedImage init(DisplayImageDIResolver resolver)
Initialize the images and polygons of the scene

Parameters:
resolver - to be used to load the images
Returns:
Buffered image that is initialized as the scene.

updateScene

void updateScene(Event e,
                 Object eventNotice,
                 CityPlayerProxy city,
                 IUpdatableDialog dialogUpdater)
Update the scene based on an event. This method allows the gameUpdate method of MainView to delegate the responsability, as the inner working of the scene is unknown to the MainView

Parameters:
e -
eventNotice -
city -
dialogUpdater -

getImage

BufferedImage getImage()
Retrieve the image that is cached with this handler

Returns:


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.