Exemplo n.º 1
0
 public OutcomeGameCommandBase(string name, IEnumerable <string> commands, UserRole lowestAllowedRole, int cooldown, UserCurrencyRequirementViewModel currencyRequirement,
                               CurrencyRequirementTypeEnum currencyRequirementType, IEnumerable <GameOutcome> outcomes, IEnumerable <GameOutcomeGroup> groups, CustomCommand loseLeftoverCommand)
     : base(name, commands, lowestAllowedRole, cooldown, currencyRequirement, currencyRequirementType)
 {
     this.Outcomes            = outcomes.ToList();
     this.Groups              = groups.ToList();
     this.LoseLeftoverCommand = loseLeftoverCommand;
 }
Exemplo n.º 2
0
 public GameOutcome(string name, CustomCommand resultCommand)
     : this(name)
 {
     this.ResultCommand = resultCommand;
 }
Exemplo n.º 3
0
 public SinglePlayerGameCommand(string name, IEnumerable <string> commands, UserRole lowestAllowedRole, int cooldown, UserCurrencyRequirementViewModel currencyRequirement,
                                CurrencyRequirementTypeEnum currencyRequirementType, IEnumerable <GameOutcome> outcomes, IEnumerable <GameOutcomeGroup> groups, CustomCommand loseLeftoverCommand)
     : base(name, commands, lowestAllowedRole, cooldown, currencyRequirement, currencyRequirementType, outcomes, groups, loseLeftoverCommand)
 {
 }
Exemplo n.º 4
0
 public IndividualProbabilityGameCommand(string name, IEnumerable <string> commands, UserRole lowestAllowedRole, int cooldown, UserCurrencyRequirementViewModel currencyRequirement,
                                         CurrencyRequirementTypeEnum currencyRequirementType, IEnumerable <GameOutcome> outcomes, IEnumerable <GameOutcomeGroup> groups, CustomCommand loseLeftoverCommand, int gameLength,
                                         int minimumParticipants)
     : base(name, commands, lowestAllowedRole, cooldown, currencyRequirement, currencyRequirementType, outcomes, groups, loseLeftoverCommand)
 {
     this.GameLength          = gameLength;
     this.MinimumParticipants = minimumParticipants;
 }
Exemplo n.º 5
0
 public SinglePlayerGameCommand(string name, IEnumerable <string> commands, RequirementViewModel requirements, IEnumerable <GameOutcome> outcomes,
                                IEnumerable <GameOutcomeGroup> groups, CustomCommand loseLeftoverCommand)
     : base(name, commands, requirements, outcomes, groups, loseLeftoverCommand)
 {
 }
Exemplo n.º 6
0
 public IndividualProbabilityGameCommand(string name, IEnumerable <string> commands, RequirementViewModel requirements, IEnumerable <GameOutcome> outcomes,
                                         IEnumerable <GameOutcomeGroup> groups, CustomCommand loseLeftoverCommand, int gameLength, int minimumParticipants)
     : base(name, commands, requirements, outcomes, groups, loseLeftoverCommand)
 {
     this.GameLength          = gameLength;
     this.MinimumParticipants = minimumParticipants;
 }
Exemplo n.º 7
0
 public GameOutcome(string name, Dictionary <UserRoleEnum, double> rolePayouts, Dictionary <UserRoleEnum, int> roleProbabilities, CustomCommand command)
 {
     this.Name              = name;
     this.Payout            = 0;
     this.RolePayouts       = rolePayouts;
     this.RoleProbabilities = roleProbabilities;
     this.Command           = command;
 }
Exemplo n.º 8
0
 public SlotsGameOutcome(string name, string symbol1, string symbol2, string symbol3, Dictionary <UserRoleEnum, double> rolePayouts, CustomCommand command, bool anyOrder)
     : base(name, rolePayouts, new Dictionary <UserRoleEnum, int>() { { UserRoleEnum.User, 0 }, { UserRoleEnum.Subscriber, 0 }, { UserRoleEnum.Mod, 0 } }, command)
 {
     this.Symbol1  = symbol1;
     this.Symbol2  = symbol2;
     this.Symbol3  = symbol3;
     this.AnyOrder = anyOrder;
 }