/// <summary> /// Konstruktor bezparametrowy /// </summary> public Player() { KeyboardSettings = new Settings.KeySettings(); AudioSettings = new Settings.AudioSettings(); IntelligenceLevel = 1; //inicializacja wszytkich pol na 0 }
/// <summary> /// Konstruktor bezparametrowy - ustawienia domyślne /// </summary> public Player() { this.IntelligenceLevel = 1; KeyboardSettings = new Settings.KeySettings(); AudioSettings = new Settings.AudioSettings(); DifficultyLevel = 1; this.CheckIntelligence = false; }
/// <summary> /// Konstruktor z przypisaniem wszytkich pól na 0 (oprócz nazwy) /// </summary> /// <param name="name">Nazwa gracza</param> public Player(string name) { KeyboardSettings = new Settings.KeySettings(); AudioSettings = new Settings.AudioSettings(); this.Name = name; this.Points = 0; this.Rackets = 0; this.Dynamite = 0; this.IntelligenceLevel = 1; }
/// <summary> /// Konstruktor z przypisaniem wszytkich pól na 0 (oprócz nazwy) /// </summary> /// <param name="name">Nazwa gracza</param> public Player(string name) { KeyboardSettings = new Settings.KeySettings(); AudioSettings = new Settings.AudioSettings(); this.IntelligenceLevel = 1; this.Name = name; this.Points = 0; this.Rackets = 0; this.Dynamite = 0; this.DifficultyLevel = 1; this.CheckIntelligence = false; }