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-/character.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
25 lines (19 sloc)
350 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
#pragma once | |
#include <iostream> | |
#include <string> | |
#include "armor.h" | |
/** A base class for any character **/ | |
class Character | |
{ | |
public: | |
int id; | |
int max_HP; | |
int current_HP; | |
int strength; | |
int defense; | |
std::string char_class; | |
Armor* armor_on_wearer; | |
Character(); | |
void new_character(); | |
void ArmorChange(); | |
}; |