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 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