ch.sahits.game.graphic.display.gameplay.internal
Class SceneHandlerFactory
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cache
private static HashMap<EScene,ISceneHandler> cache
- Cache for the scene loaders
SceneHandlerFactory
public SceneHandlerFactory()
getSceneLoader
public static ISceneHandler getSceneLoader(EScene scene,
Rectangle parentsBounds,
IDataImageLoader imgDataLoader,
DisplayImageDIResolver resolver)
Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.