Exemplo n.º 1
0
 public Stats(Stats stats)
 {
     Health = stats.Health;
     MaxHealth = stats.MaxHealth;
     Strenght = stats.Strenght;
     Defence = stats.Defence;
     Exp = stats.Exp;
 }
Exemplo n.º 2
0
 public Stats getModfied(Stats stats)
 {
     return new Stats(stats)
     {
         Strenght = stats.Strenght + Strenght,
         Defence = stats.Defence + Defence,
         MaxHealth = MaxHealth + stats.MaxHealth
     };
 }
Exemplo n.º 3
0
        public Fighter()
        {
            BaseStats = new Stats
            {
                Strenght = 10,
                Defence = 10,
                MaxHealth = 100,
                Health = 100,
                Exp = 0
            };
            equipment = new List<IEquipment>();
            weapons = new List<Weapon>();

            UpdateEquipment();
        }
Exemplo n.º 4
0
        public Player(GameScreen screen)
        {
            this.screen = screen;
            BaseStats = new Stats
            {
                Strenght = 10,
                Defence = 10,
                MaxHealth = 100,
                Health = 100,
                Exp = 0
            };

            //Test here
            AddSampleSpells();

            UpdateEquipment();
        }
Exemplo n.º 5
0
 public Stats getModfied(Stats stats)
 {
     return stats;
 }
Exemplo n.º 6
0
 public int GetAttackForce(Stats stats)
 {
     return stats.Strenght * Power;
 }