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?
Text-Based-Game-Project/Encounters.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
53 lines (41 sloc)
955 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 <random> | |
#include <cstdlib> | |
#include <thread> | |
#include <chrono> | |
#include <string> | |
#include <fstream> | |
using namespace std; | |
#ifndef Encounters_H | |
#define Encounters_H | |
class Encounters { | |
public: | |
Encounters(string, string, string, string, string, bool, bool, int, int, int, int); | |
~Encounters(); | |
string getName() const; | |
string getDialogue(string, string) const; | |
string getHealth() const; | |
string getHunger() const; | |
string getLuck() const; | |
void setInTransit(bool); | |
void setEncounters(int); | |
void setDeath(int, int, bool); | |
void setHungerRate(string, int); | |
void setType(string); | |
void setHealth(int); | |
void setNexDest(string); | |
private: | |
string NewName; | |
string NewDialogue; | |
string NewLuck; | |
string NewType; | |
string NewNexDest; | |
bool NewInTransit; | |
bool NewDeath; | |
int NewHealth; | |
int NewHunger; | |
int NewHungerRate; | |
int NewEncounters; | |
}; | |
#endif |