using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace LD_24.Code
{
///
/// Class for storing a single NPC
///
public class NPC : Actor, IComparable, IEquatable
{
///
/// blah blah blah blah
///
public string Guild { get; set; }
public NPC(string race, string startingTown, string name, string @class, int health, int mana, int attack, int defense, string guild) : base(race, startingTown, name, @class, health, mana, attack, defense)
{
Guild = guild;
}
///
/// blah blah
///
///
///
public int CompareTo(NPC other)
{
return Attack.CompareTo(other.Attack);
}
///
/// blah blah blah
///
///
///
public bool Equals(NPC other)
{
return Attack.Equals(other.Attack);
}
///
/// blah blah?
///
///
public override string ToCSVLine()
{
return string.Join(";", Race, StartingTown, Name, Class, Health, Mana, Attack, Defense, Guild);
}
}
}