Beispiel #1
0
 public EcoStatController(GameState game, IPlayerController controller, Economy economy, EcoValue value,
                          IAction decreaseInvestment, IAction increaseInvestment, string controlString)
 {
     this.game               = game;
     this.controller         = controller;
     this.economy            = economy;
     this.value              = value;
     this.decreaseInvestment = decreaseInvestment;
     this.increaseInvestment = increaseInvestment;
     this.controlString      = controlString;
 }
 public EcoStatController(GameState game, IPlayerController controller, Economy economy, EcoValue value,
     IAction decreaseInvestment, IAction increaseInvestment, string controlString)
 {
     this.game = game;
     this.controller = controller;
     this.economy = economy;
     this.value = value;
     this.decreaseInvestment = decreaseInvestment;
     this.increaseInvestment = increaseInvestment;
     this.controlString = controlString;
 }
Beispiel #3
0
 public EcoStat this[EcoValue value] {
     get { return(this.ecoStats[value]); }
 }
Beispiel #4
0
 public Implementation(IPlayerController controller, GameState game, EcoValue value, double investment)
     : base(RequestType.EconomyValueInvestmentChanged, CommandType.EconomyValueInvestmentChanged, controller, game)
 {
     this.p          = new Parameters(value, investment);
     this.clientOnly = true;
 }
Beispiel #5
0
 public Parameters(EcoValue value, double investment)
 {
     this.value      = value;
     this.investment = investment;
 }
Beispiel #6
0
 public static IRequest Request(GameState game, IPlayerController controller, EcoValue value, double investment)
 {
     return(new Implementation(controller, game, value, investment));
 }
 public EcoStat this[EcoValue value]
 {
     get { return this.ecoStats[value]; }
 }
            public static ValueParameters FromEconomy(Economy.Economy eco, EcoValue value)
            {
                var v = eco[value];

                return new ValueParameters(value, v.Value, v.Investment);
            }
 private ValueParameters(EcoValue ecoValue, double value, double investment)
 {
     this.ecoValue = ecoValue;
     this.value = value;
     this.investment = investment;
 }
Beispiel #10
0
            public static ValueParameters FromEconomy(Economy.Economy eco, EcoValue value)
            {
                var v = eco[value];

                return(new ValueParameters(value, v.Value, v.Investment));
            }
Beispiel #11
0
 private ValueParameters(EcoValue ecoValue, double value, double investment)
 {
     this.ecoValue   = ecoValue;
     this.value      = value;
     this.investment = investment;
 }