You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. #ifndef ENCOUNTER_H
  2. #define ENCOUNTER_H
  3. #include <stdbool.h>
  4. typedef struct enemy{
  5. int health;
  6. int damage;
  7. int armor;
  8. int maxHealth;
  9. int healPotions;
  10. int exp;
  11. int gold;
  12. } enemy;
  13. bool playerAlive(Character *character);
  14. int playerHeal(Character* character,int amount);
  15. int playerDamaged(enemy* enemy, Character* character);
  16. int rollInitiative (Character *character);
  17. void enemyHeal(enemy *enemy, int healAmount);
  18. void enemyDamaged(enemy* enemy, Character* character);
  19. bool enemyChoosesHeal(enemy* enemy);
  20. int switchTurns(int currentTurn);
  21. int fight(Character *character, enemy* enemy);
  22. //Getter/Setter Funktionen
  23. int getEnemyMaxHealth(enemy* enemy);
  24. int getEnemyGold(enemy* enemy);
  25. int getEnemyHealth(enemy* enemy);
  26. void setEnemyHealth(enemy* enemy, int newhealth);
  27. int getEnemyArmor(enemy* enemy);
  28. void setEnemyArmor(enemy* enemy, int newarmor);
  29. int getEnemyDamage(enemy* enemy);
  30. void setEnemyDamage(enemy* enemy, int newdamage);
  31. int getEnemyHealPotions(enemy* enemy);
  32. void setEnemyHealPotions(enemy* enemy, int newPotions);
  33. int getEnemyExp(enemy* enemy);
  34. void setEnemyExp(enemy* enemy, int newExp);
  35. int createRandomEnemy(enemy* enemy);
  36. #endif