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-/area.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
35 lines (21 sloc)
882 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 AREA_H | |
#define AREA_H | |
#include <iostream> | |
#include <random> | |
#include <time.h> | |
/** | |
This class is used as a base for all of the "areas" in the game. | |
We're going to use inheritance in order for other areas (such as "Combat" or "Shop") to | |
inherit the variables and methods needed for them to work in general, before giving them | |
a more specialized use. | |
*/ | |
class Area{ | |
protected: | |
int areaLocation; //This is the ID of the location. It will be used to decide the specifics of the object. | |
std::string areaName; | |
public: | |
Area(); | |
std::string get_area_name(); //This method should return the name of the area, based on it's ID and the database | |
std::string get_area_description(); //This method should output a description of the area, based on it's ID and the database. | |
}; | |
#endif |