コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public Combatant(string texturePath, Enumerators.eCombatantSide side)
 {
     Side           = side;
     CharacterModel = (Texture)GD.Load(texturePath);
 }