Пример #1
0
 public BattlePokemon(
     string name,
     string?nickname,
     int level,
     IPermanentStat health,
     IPermanentStat attack,
     IPermanentStat defense,
     IPermanentStat special,
     IPermanentStat speed,
     IBattleStat accuracy,
     IBattleStat evasion,
     decimal weight,
     decimal height,
     IReadOnlyIndexedSet <IType> types,
     IReadOnlyIndexedSet <IMove> moves,
     ITier tier)
 {
     Name     = name;
     Nickname = nickname;
     Level    = level;
     Health   = health;
     Attack   = attack;
     Defense  = defense;
     Special  = special;
     Speed    = speed;
     Accuracy = accuracy;
     Evasion  = evasion;
     Weight   = weight;
     Height   = height;
     Types    = types;
     Moves    = moves;
     Tier     = tier;
 }
Пример #2
0
 public Species(
     int id,
     string name,
     ISpeciesStat health,
     ISpeciesStat attack,
     ISpeciesStat defense,
     ISpeciesStat special,
     ISpeciesStat speed,
     decimal weight,
     decimal height,
     IReadOnlyIndexedSet <IType> types,
     IReadOnlyIndexedSet <IMove> moves,
     ITier tier)
 {
     Id      = id;
     Name    = name;
     Health  = health;
     Attack  = attack;
     Defense = defense;
     Special = special;
     Speed   = speed;
     Weight  = weight;
     Height  = height;
     Types   = types;
     Moves   = moves;
     Tier    = tier;
 }
 public Format(
     string name,
     string description,
     IReadOnlyIndexedSet <IClause>?clauses           = null,
     IReadOnlyIndexedSet <IMod>?mods                 = null,
     IReadOnlyIndexedSet <IRestriction>?restrictions = null)
 {
     Name         = name;
     Description  = description;
     Clauses      = clauses ?? new IndexedSet <IClause>();
     Mods         = mods ?? new IndexedSet <IMod>();
     Restrictions = restrictions ?? new IndexedSet <IRestriction>();
 }
 public Battle(IGeneration generation, IReadOnlyIndexedSet<ITrainer> trainers)
 {
     Generation = generation;
     Trainers = trainers;
 }
Пример #5
0
 public Trainer(string name, IReadOnlyIndexedSet <IBattlePokemon> pokemons)
 {
     Name     = name;
     Pokemons = pokemons;
 }