Skip to content

Instantly share code, notes, and snippets.

@timdams
Created March 4, 2020 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timdams/6b542ab1e0af5b4c52528f673f78b5ae to your computer and use it in GitHub Desktop.
Save timdams/6b542ab1e0af5b4c52528f673f78b5ae to your computer and use it in GitHub Desktop.
Heroquest held v1
enum HeldType {Barbaar, Dwerg, Elf, Tovenaar }
class Held
{
public Held(HeldType type, string naam)
{
Naam = naam;
HeldType = type;
switch (type)
{
case HeldType.Barbaar:
AanvalsDobbelstenen = 3;
MaxIntelligentie = 2;
MaxLichaam = 8;
break;
case HeldType.Dwerg:
MaxIntelligentie = 3;
MaxLichaam = 7;
break;
case HeldType.Elf:
MaxIntelligentie = 4;
MaxLichaam = 6;
break;
case HeldType.Tovenaar:
AanvalsDobbelstenen = 1;
MaxIntelligentie = 6;
MaxLichaam = 4;
break;
default:
break;
}
HuidigIntelligentie = MaxIntelligentie;
HuidigLichaam = MaxLichaam;
}
public string Naam { get; set; }
public string Beschrijving { get; private set; }
public int MaxIntelligentie { get;private set; }
public int MaxLichaam { get;private set; }
public int HuidigIntelligentie { get; set; }
public int HuidigLichaam { get; set; }
public HeldType HeldType { get; private set; }
public int AanvalsDobbelstenen { get; private set; } = 2;
public int VerdigingsDobbelstenen { get; private set; } = 2;
public int LoopDobbelstenen { get; private set; } = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment