ch.sahits.game.graphic.display.gameplay.internal
Class SceneHandlerFactory

java.lang.Object
  extended by ch.sahits.game.graphic.display.gameplay.internal.SceneHandlerFactory

public class SceneHandlerFactory
extends Object

Factory class for the different scene loaders. This factory class uses caching. Once a instance is created and put into the cache, the cached instance will be returned.

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

Field Summary
private static HashMap<EScene,ISceneHandler> cache
          Cache for the scene loaders
 
Constructor Summary
SceneHandlerFactory()
           
 
Method Summary
static ISceneHandler getSceneLoader(EScene scene, Rectangle parentsBounds, IDataImageLoader imgDataLoader, DisplayImageDIResolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

private static HashMap<EScene,ISceneHandler> cache
Cache for the scene loaders

Constructor Detail

SceneHandlerFactory

public SceneHandlerFactory()
Method Detail

getSceneLoader

public static ISceneHandler getSceneLoader(EScene scene,
                                           Rectangle parentsBounds,
                                           IDataImageLoader imgDataLoader,
                                           DisplayImageDIResolver resolver)


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