Пример #1
0
 public string GetAsString()
 {
     return("{" + Race.ToString() + ", " + Class.ToString() + ", " + Sex.ToString() + ", " + Level + "}");
 }
Пример #2
0
 public override string ToString()  //вывод информации о герое
 {
     return("Hero name:" + PlayerName.ToString() + ", Race: " + Race.ToString() + ", Sex: " + Sex.ToString() + ", Age: " + PlayerAge.ToString() + ", Condition: " + Condition.ToString() + ", Max Health: " + PlayerMaxHealth.ToString() + ", Current Health: " + PlayerCurrentHealth.ToString() + ", Experiance: " + PlayerExp.ToString());
 }