Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Main header script - this will be included into every script in
- // the game (local and global). Do not place functions here; rather,
- // place import definitions and #define names here to be used by all
- // scripts.
- #define MAX_ENEMIES 30 // How many different enemies you have in the game
- // Battle Related Data
- struct Weapons {
- int damage;
- int speed;
- int delay;
- String name;
- };
- struct Hexad {
- int power;
- int speed;
- int cost;
- int delay;
- String name;
- };
- struct Enemy
- {
- // Enemy Stats
- int power;
- int health;
- int speed;
- // This is for displaying the enemy on screen
- Character* body;
- int harlot;
- int id;
- // Methods you can call on an enemy
- import int Attack();
- import bool IsAlive();
- /// Finds the id of the enemy with this name
- import static int Find(String name);
- String name;
- };
- import void AttackAnimation(this Character*);
- import void InitEnemies();
- import Enemy enemy[MAX_ENEMIES];
- // Setup the battle by choosing which enemies to fight
- import void InitBattle(int enemyId1, int enemyId2 = -1);
- // Let the enemies attack you. Returns true if you were killed
- import bool EnemyTurn();
- // Attack one of the enemies you're facing. Returns true if you killed it
- import bool AttackEnemy(int id);
- // These are the enemies you're facing in this battle
- import int battleEnemy[2];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement