using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace LD_24.Code
{
///
/// Abstract actor class
///
public abstract class Actor
{
///
/// Race of actor
///
public string Race { get; set; }
///
/// Starting town of actor
///
public string StartingTown { get; set; }
///
/// Name of actor
///
public string Name { get; set; }
///
/// Class of actor
///
public string Class { get; set; }
///
/// Health points of actor
///
public int Health { get; set; }
///
/// Mana points of actor
///
public int Mana { get; set; }
///
/// Attack points of actor
///
public int Attack { get; set; }
///
/// Defense points of actor
///
public int Defense { get; set; }
public Actor(string race, string startingTown, string name, string @class, int health, int mana, int attack, int defense)
{
Race = race;
StartingTown = startingTown;
Name = name;
Class = @class;
Health = health;
Mana = mana;
Attack = attack;
Defense = defense;
}
///
/// Serialize an actor into a valid CSV line
///
/// A string representing the whole actor
public abstract string ToCSVLine();
}
}