Created
March 4, 2020 09:33
-
-
Save timdams/6b542ab1e0af5b4c52528f673f78b5ae to your computer and use it in GitHub Desktop.
Heroquest held v1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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