Exemplo n.º 1
0
        public ResourceSegment(PopulationType type, PlayerBoard board)
        {
            var msg = "Storage: {0}[placeholder]</br>Production: {1}</br>Next Production: {2}";
            msg = String.Format(msg, board.GetStorage(type), board.GetProduction(type), board.GetNextProduction(type));
            if (type == PopulationType.Money)
               msg= msg.Replace("[placeholder]", "</br>Production less upkeep: " + (board.GetProduction(PopulationType.Money) - board.GetUpkeep()).ToString());
            else
                msg = msg.Replace("[placeholder]", "");

            Description = msg;

            Name = type.ToString();
        }
Exemplo n.º 2
0
 public String GetCurrentProductionDescription(PopulationType type)
 {
     return  String.Format("Net {0} Production: {1}", type.ToString(), GetNetProduction(type));
 }
Exemplo n.º 3
0
 public void AdjustStorage(PopulationType type, int adjustment)
 {
     var before = Storage[type];
     Storage[type] += adjustment;
     var after = Storage[type];
     AddLogLine(type.ToString() + " Storage: " + SignedNumber(before, after));
 }
Exemplo n.º 4
0
 public bool HasAdvancedTechnology(PopulationType type)
 {
     return HasTechnology("Advanced " + type.ToString());
 }