CharacterStats.ToString() now returns a formatted string with all of the stats.
StandardGame and it's Child Classes display the name of the game when ToString() is invoked. Realm and Zone save/load code is completed.
This commit is contained in:
parent
ee3cd897f2
commit
706c770dd7
6 changed files with 133 additions and 15 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
//using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
@ -17,5 +17,17 @@ namespace MudEngine.Game.Characters
|
|||
public int Wisdom { get; set; }
|
||||
public int Charisma { get; set; }
|
||||
public int Experience { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return
|
||||
"Strength:" + this.Strength.ToString()
|
||||
+ ".Dexterity:" + this.Dexterity.ToString()
|
||||
+ ".Constitution:" + this.Constitution.ToString()
|
||||
+ ".Intelligence:" + this.Intelligence.ToString()
|
||||
+ ".Wisdom:" + this.Wisdom.ToString()
|
||||
+ ".Charisma:" + this.Charisma.ToString()
|
||||
+ ".Experience:" + this.Experience.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue