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); }
//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
public GameManager(GameType type, RaceClass raceClass) { Game = new Game(raceClass); Type = type; Leaderboard = new Leaderboard(); }
public Game(RaceClass raceClass) { Class = raceClass; Races = new List<IRace>(); Players = new Dictionary<Character, string>(); }
public Game(RaceClass raceClass) { Class = raceClass; Races = new List <IRace>(); Players = new Dictionary <Character, string>(); }