muddesigner/MudEngine/WinPC_Engine/Game/Characters/CharacterStats.cs
Scionwest_cp 706c770dd7 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.
2012-03-11 13:25:32 -07:00

33 lines
1.1 KiB
C#

//using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MudEngine.Game.Characters
{
/// <summary>
/// Stats that are used by the Character
/// </summary>
public struct CharacterStats
{
public int Strength { get; set; }
public int Dexterity { get; set; }
public int Constitution { get; set; }
public int Intelligence { get; set; }
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();
}
}
}