Esempio n. 1
0
        public void InitializeState()
        {
            State = new ShipStateInfo(this);

            State.Initiative          = PilotInfo.Initiative;
            State.PilotSkillModifiers = new List <IModifyPilotSkill>();

            State.Firepower      = ShipInfo.Firepower;
            State.Agility        = ShipInfo.Agility;
            State.HullMax        = ShipInfo.Hull;
            State.ShieldsMax     = ShipInfo.Shields;
            State.ShieldsCurrent = State.ShieldsMax;

            State.MaxForce = PilotInfo.Force;

            State.MaxCharges    = PilotInfo.Charges > 0 ? PilotInfo.Charges : ShipInfo.Charges;
            State.RegensCharges = PilotInfo.RegensCharges || ShipInfo.RegensCharges;

            Maneuvers = new Dictionary <string, Movement.MovementComplexity>();
            if (DialInfo != null)
            {
                foreach (var maneuver in DialInfo.PrintedDial)
                {
                    Maneuvers.Add(maneuver.Key.ToString(), maneuver.Value);
                }
            }
        }
Esempio n. 2
0
        private void InitializeState()
        {
            State = new ShipStateInfo(this);

            State.Initiative          = PilotInfo.Initiative;
            State.PilotSkillModifiers = new List <IModifyPilotSkill>();

            State.Firepower      = ShipInfo.Firepower;
            State.Agility        = ShipInfo.Agility;
            State.HullMax        = ShipInfo.Hull;
            State.ShieldsMax     = ShipInfo.Shields;
            State.ShieldsCurrent = State.ShieldsMax;

            State.MaxForce = PilotInfo.Force;

            State.MaxCharges    = PilotInfo.Charges;
            State.RegensCharges = PilotInfo.RegensCharges;

            foreach (var maneuver in DialInfo.PrintedDial)
            {
                Maneuvers.Add(maneuver.Key.ToString(), maneuver.Value);
            }
        }