Beispiel #1
0
 protected Painter(GraphicsManager manager)
 {
     GraphicsManager = manager;
 }
Beispiel #2
0
 public MenuPainter(GraphicsManager manager)
     : base(manager)
 {
 }
Beispiel #3
0
 public BasicPainter(GraphicsManager manager)
     : base(manager)
 {
 }
Beispiel #4
0
 public WorldPainter(GraphicsManager manager)
     : base(manager)
 {
     _tiles = manager.Tiles;
 }
Beispiel #5
0
 public MenuFactory(GraphicsManager graphicsManager)
 {
     _graphicsManager = graphicsManager;
 }
Beispiel #6
0
        //Classes below called from XNA base classes.
        //It was made for logical isolation of the game functions from framework methods
        protected void GameInitialize()
        {
            //Loading configuration from file...
            var config = new Configuration(GameSettings.ConfigurationFile);

            //And writing it to static class GameSettings
            GameSettings.Load(config);

            //Initizating managers
            Managers.Add(ScreenManager = new ScreenManager());
            Managers.Add(ControlsManager = new ControlsManager());
            Managers.Add(GraphicsManager = new GraphicsManager(Graphics, GraphicsDevice, Window));
            Managers.Add(MenuManager = new MenuManager());
            Managers.Add(WorldManager = new WorldManager());
        }
Beispiel #7
0
 public SpriteFactory(GraphicsManager manager)
 {
     _graphicsManager = manager;
 }