Skip to content

Instantly share code, notes, and snippets.

@ScottLilly
Created April 18, 2014 20:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ScottLilly/ade88e1a92a2ff8799f0 to your computer and use it in GitHub Desktop.
Save ScottLilly/ade88e1a92a2ff8799f0 to your computer and use it in GitHub Desktop.
Lesson 06.1 - Creating the remaining classes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class HealingPotion
{
public int ID { get; set; }
public string Name { get; set; }
public string NamePlural { get; set; }
public int AmountToHeal { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class Item
{
public int ID { get; set; }
public string Name { get; set; }
public string NamePlural { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class Location
{
public int ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class Monster
{
public int ID { get; set; }
public string Name { get; set; }
public int MaximumHitPoints { get; set; }
public int CurrentHitPoints { get; set; }
public int MaximumDamage { get; set; }
public int RewardExperiencePoints { get; set; }
public int RewardGold { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class Quest
{
public int ID { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public int RewardExperiencePoints { get; set; }
public int RewardGold { get; set; }
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Engine
{
public class Weapon
{
public int ID { get; set; }
public string Name { get; set; }
public string NamePlural { get; set; }
public int MinimumDamage { get; set; }
public int MaximumDamage { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment