Example #1
0
        /// <summary>
        /// Calculates the total amount of credits spent on stations and research
        /// </summary>
        /// <returns></returns>
        public int CalculateTotalCost()
        {
            int Cost = 0;

            foreach (IGCCoreStationType Stat in _stations)
            {
                Cost += Stat.Cost;
            }

            foreach (IGCCoreDevel Devel in _research)
            {
                Cost += (int)Devel.Cost;
            }

            IGCCoreStationType Garrison = (IGCCoreStationType)_game.Core.StationTypes.GetObject(_faction.Garrison_UID);

            Cost -= Garrison.Cost;
            return(Cost);
        }
Example #2
0
 public Station(Team team, IGCCoreStationType station) : base(team, station)
 {
     _station = station;
 }