Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. // Main header script - this will be included into every script in
  2. // the game (local and global). Do not place functions here; rather,
  3. // place import definitions and #define names here to be used by all
  4. // scripts.
  5.  
  6. #define MAX_ENEMIES 30 // How many different enemies you have in the game
  7.  
  8. // Battle Related Data
  9. struct Weapons {
  10. int damage;
  11. int speed;
  12. int delay;
  13. String name;
  14. };
  15.  
  16. struct Hexad {
  17. int power;
  18. int speed;
  19. int cost;
  20. int delay;
  21. String name;
  22. };
  23.  
  24. struct Enemy
  25. {
  26.  
  27. // Enemy Stats
  28. int power;
  29. int health;
  30. int speed;
  31.  
  32. // This is for displaying the enemy on screen
  33. Character* body;
  34. int harlot;
  35. int id;
  36.  
  37. // Methods you can call on an enemy
  38. import int Attack();
  39. import bool IsAlive();
  40.  
  41. /// Finds the id of the enemy with this name
  42. import static int Find(String name);
  43. String name;
  44. };
  45.  
  46. import void AttackAnimation(this Character*);
  47. import void InitEnemies();
  48.  
  49. import Enemy enemy[MAX_ENEMIES];
  50.  
  51. // Setup the battle by choosing which enemies to fight
  52. import void InitBattle(int enemyId1, int enemyId2 = -1);
  53. // Let the enemies attack you. Returns true if you were killed
  54. import bool EnemyTurn();
  55. // Attack one of the enemies you're facing. Returns true if you killed it
  56. import bool AttackEnemy(int id);
  57.  
  58. // These are the enemies you're facing in this battle
  59. import int battleEnemy[2];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement