Skip to content
Permalink
master
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
#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