Esempio n. 1
0
 public Npc(string uniqueID)
 {
     _uniqueID = uniqueID;
     _stats = new StatHandler();
     _stats.AddStat(new Strength(100), "Strength");
     _stats.AddStat(new Defence(100), "Defence");
     _stats.AddStat(new Health(100), "Health");
     _combatHandler = new DefaultCombatHandler();
 }
Esempio n. 2
0
 public Player(Texture2D playerTexture)
 {
     _spriteSheet = new SpriteSheet(playerTexture, 3, 4, 32, 32);
     _stats = new StatHandler();
     _stats.AddStat(new Strength(100), "Strength");
     _stats.AddStat(new Defence(100), "Defence");
     _stats.AddStat(new Health(100), "Health");
     _combatHandler = new DefaultCombatHandler();
 }