Exemplo n.º 1
0
        /// <summary>
        /// Changes the Hitzones to the Hitzones of newRace
        /// </summary>
        /// <param name="newRace">Name of the Race</param>
        public void RaceChanged(string newRace)
        {
            _view.HitzonesClearGrid();
            Hitzones newHitZone = _hitFab.getZonesFor(newRace);

            _view.HitzonesAddBodyParts(newHitZone.getHitzoneNames(), newHitZone.getHitzoneStartIndices(), newHitZone.getHitzoneEndIndices());
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initial setup of the View (fill with predefined values)
        /// </summary>
        private void LoadView()
        {
            string   defaultRace    = _hitFab.AvailableRaces[0];
            Hitzones defaultHitZone = _hitFab.getZonesFor(defaultRace);

            _view.HitzonesClearGrid();
            _view.HitzonesAddBodyParts(defaultHitZone.getHitzoneNames(), defaultHitZone.getHitzoneStartIndices(), defaultHitZone.getHitzoneEndIndices());

            _view.HitzonesSetAvailableRaces(_hitFab.AvailableRaces);
            _view.selectedRace = defaultRace;
        }