Beispiel #1
0
 public Damageable(Sprite sprite, Faction faction, int maxHP, int currentHP, bool collideable)
     : base(sprite, collideable)
 {
     this.Faction = faction;
     this.MaxHealth = maxHP;
     this.Health = currentHP;
 }
Beispiel #2
0
 /// <summary>
 /// Instantiates a new damageable with full health.
 /// </summary>
 /// <param name="faction">The faction of the entity.</param>
 /// <param name="maxHP">The entity's maximum health.</param>
 public Damageable(Sprite sprite, Faction faction, int maxHP, bool collideable)
     : this(sprite, faction, maxHP, maxHP, collideable)
 {
 }