public Boolean AddCombatant(string texturePath, Enumerators.eCombatantSide side) { try { Combatant newCombatant = new Combatant(texturePath, side); CurrentCombatant.Add(newCombatant); return(true); } catch (Exception ex) { GD.Print(ex); return(false); } }
public Combatant(int hitPoints, int minDamage, int maxDamage, int protection, int initiative, string texturePath, Enumerators.eCombatantSide side) { MaxHitPoints = hitPoints; CurrentHitPoints = hitPoints; MinDamage = minDamage; MaxDamage = maxDamage; Protection = protection; Initiative = initiative; Side = side; CharacterModel = (Texture)GD.Load(texturePath); }
public Combatant(string texturePath, Enumerators.eCombatantSide side) { Side = side; CharacterModel = (Texture)GD.Load(texturePath); }