-
Notifications
You must be signed in to change notification settings - Fork 0
/
Trash.hpp
62 lines (58 loc) · 1.91 KB
/
Trash.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/**************************************************************************
* Program Name:Trash.hpp
* Name: Manda Jensen
* Date: 08 JUN 2019
* Description: This file contains the definition of the class Trash.
* Trash is a child class of and inherits from Space.
* Variables:
* no additional variables than the ones in Space.
*
* Functions:
* Trash() - default constructor
* Parameters: none
* Return Type: n/a
* Purpose: default constructor for Trash, sets
* the type of the space appropriately and sets
* all Space* variables to nullptr
* ~Trash() - default destructor
* Parameters: none
* Return Type: n/a
* Purpose: default destructor for Trash, sets all
* Space* variables to nullptr
* spaceMenu() - overriden function
* Parameters: none
* Return Type: int
* Purpose: prints the space menu displaying the possible
* actions in that space and returns the integer
* for the user's choice
* play() - overriden function
* Parameters: Ingredient vector by reference
* Return Type: bool
* Purpose: goes through the actions to play out a turn
* when the player is on this space, will
* manipulate the ingredient vector provided
* as an argument as needed, calls spaceMenu()
* to determine the user's choice for action
* returns false
* printType() - overriden function
* Parameters: none
* Return Type: string
* Prupose: returns a string that contains the type of
* the space centered within 18 characters with
* white space on either side
**************************************************************************/
#ifndef TRASH_H
#define TRASH_H
#include "Space.hpp"
#include "ingredients.hpp"
#include <string>
#include <vector>
class Trash: public Space
{ public:
Trash();
~Trash();
int spaceMenu() override;
bool play(std::vector<ingredients> &basket) override;
std::string printType() override;
};
#endif //TRASH_H