public MasterRenderer(DataMaster dataMaster)
        {
            this.dataMaster = dataMaster;

            UnitRenderers = new List<UnitRenderer>(dataMaster.Units.Count);

            mapRenderer = new MapRenderer(dataMaster.map);
            interfaceBarRenderer = new InterfaceBarRenderer(dataMaster.InterfaceBar);
            initUnitsRenderers();
        }
Exemple #2
0
        public MasterRenderer(DataMaster dataMaster)
        {
            this.dataMaster = dataMaster;

            UnitRenderers = new UnitRenderer[dataMaster.Units.Length];

            mapRenderer = new MapRenderer(dataMaster.map);
            interfaceBarRenderer = new InterfaceBarRenderer(dataMaster.InterfaceBar);
            initUnitsRenderers();
        }
Exemple #3
0
        public CombatScreen(Game game)
        {
            this.game = game;

            dataMaster = new DataMaster(game);
            DataMaster = dataMaster;

            unitHandler = new UnitHandler(game, this);
            interfaceHandler = new InterfaceHandler(this);
            masterRenderer = new MasterRenderer(dataMaster);
        }