TheCOSCGameProject  1.0
combat.h
Go to the documentation of this file.
1 
8 #ifndef COMBAT_H
9 #define COMBAT_H
10 
11 #include "../lib/dependencies.h"
12 #include <string>
13 #include <iostream>
14 #include <cstdlib>
15 #include <ctime>
16 #include <chrono>
17 
25 void printHealth(int playerHealth, int enemyHealth, const std::string &name);
26 
37 bool combatV1(int *playerHealth, int enemyHealth, int difficulty, const std::string &name, int playerDamage, int enemyDamage, int resistance);
38 
45 void combatV2(int playerHealth, int enemyHealth);
46 
47 #endif // COMBAT_H
void combatV2(int playerHealth, int enemyHealth)
Handles combat mechanics for version 2.
Definition: combat.cpp:110
bool combatV1(int *playerHealth, int enemyHealth, int difficulty, const std::string &name, int playerDamage, int enemyDamage, int resistance)
Handles combat mechanics for version 1.
Definition: combat.cpp:45
void printHealth(int playerHealth, int enemyHealth, const std::string &name)
Prints the health status of the player and the enemy.
Definition: combat.cpp:18