Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ALL-Project-2-Text-Based-Game-Blackmail-/combat.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (24 sloc)
712 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef COMBAT_H | |
#define COMBAT_H | |
#include <iostream> | |
#include "area.h" | |
#include <vector> | |
#include "character.h" | |
#include "enemy.h" | |
#include "inputTest.h" | |
#include "typing.h" | |
/** | |
This class ihnerits from the Area class, it's use is to create "Combat" areas, where you can meet and fight enemies. | |
*/ | |
class Combat: public Area{ | |
protected: | |
int numberOfEnemies; | |
std::vector<Enemy>enemyList; | |
char fight( Character& hero, Enemy& opponent ); | |
char hero_attack( Character& hero, Enemy& opponent, int heroHitDamage, int opponentHitDamage, int opponentName ); | |
public: | |
Combat( int areaID, int howManyEnemies ); | |
char battle( Character& hero ); | |
std::string get_area_description(); | |
}; | |
#endif |