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 EcoStat this[EcoValue value] { get { return(this.ecoStats[value]); } }
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; }
public Parameters(EcoValue value, double investment) { this.value = value; this.investment = investment; }
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; }
public static ValueParameters FromEconomy(Economy.Economy eco, EcoValue value) { var v = eco[value]; return(new ValueParameters(value, v.Value, v.Investment)); }