//METODI /// <summary> /// Ovveride del metodo <c>ToString()</c> /// </summary> /// <returns>Restituisce una stringa con le informazioni relative all'eroe</returns> public override string ToString() { return(Nome + " -> Arma: " + Arma.Nome + " - Punti vita: " + PuntiVita.ToString() + " - Punti accumulati: " + PuntiAccumulati.ToString()); }
/// <summary> /// Metodo utile per il display delle statistiche dell'eroe /// </summary> /// <returns>Restituisce una stringa con le informazioni relative alle statistiche</returns> public string DisplayStat() { return(Nome + " - " + PuntiAccumulati.ToString() + " punti accumulati - " + (TempoDiGioco / 60000).ToString() + " minuti giocati"); }