Exemplo n.º 1
0
 protected Painter(GraphicsManager manager)
 {
     GraphicsManager = manager;
 }
Exemplo n.º 2
0
 public MenuPainter(GraphicsManager manager)
     : base(manager)
 {
 }
Exemplo n.º 3
0
 public BasicPainter(GraphicsManager manager)
     : base(manager)
 {
 }
Exemplo n.º 4
0
 public WorldPainter(GraphicsManager manager)
     : base(manager)
 {
     _tiles = manager.Tiles;
 }
Exemplo n.º 5
0
 public MenuFactory(GraphicsManager graphicsManager)
 {
     _graphicsManager = graphicsManager;
 }
Exemplo n.º 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());
        }
Exemplo n.º 7
0
 public SpriteFactory(GraphicsManager manager)
 {
     _graphicsManager = manager;
 }