public Season AddSeason(int raceCount, string champion, DateTime time, RaceClass raceClass)
        {
            SeasonMemContext seasonMemContext = new();
            SeasonRepository seasonRepo       = new(seasonMemContext);
            Season           season           = new(raceCount, champion, time, raceClass);

            seasonRepo.AddSeason(season);
            return(season);
        }
Пример #2
0
        //public int Life
        //{
        //    get { return _life; }
        //    set
        //    {
        //        if (value <= MaxLife && value > 0)
        //        {
        //            _life = value;
        //        }//end if
        //        else
        //        {
        //            _life = MaxLife;
        //        }//end else
        //    }//end set
        //}//end Life

        //CTOR
        //Only make a FQCTOR - we dont want to be able to make a blank player
        public Player(string name, int hitChance, int block, int life, int maxLife, RaceClass characterRace, Weapon equippedWeapon, int experience)
        {
            MaxLife        = maxLife;
            Life           = life;
            Name           = name;
            Block          = block;
            HitChance      = hitChance;
            CharacterRace  = characterRace;
            EquippedWeapon = equippedWeapon;
            Experience     = experience;
        }//end player FQCTOR
Пример #3
0
 public GameManager(GameType type, RaceClass raceClass)
 {
     Game        = new Game(raceClass);
     Type        = type;
     Leaderboard = new Leaderboard();
 }
Пример #4
0
 public Game(RaceClass raceClass)
 {
     Class = raceClass;
     Races = new List<IRace>();
     Players = new Dictionary<Character, string>();
 }
Пример #5
0
 public Game(RaceClass raceClass)
 {
     Class   = raceClass;
     Races   = new List <IRace>();
     Players = new Dictionary <Character, string>();
 }
Пример #6
0
 public GameManager(GameType type, RaceClass raceClass)
 {
     Game = new Game(raceClass);
     Type = type;
     Leaderboard = new Leaderboard();
 }