-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDish.hpp
More file actions
62 lines (58 loc) · 1.9 KB
/
Dish.hpp
File metadata and controls
62 lines (58 loc) · 1.9 KB
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:Dish.hpp
* Name: Manda Jensen
* Date: 08 JUN 2019
* Description: This file contains the definition of the class Dish.
* Dish is a child class of and inherits from Space.
* Variables:
* no additional variables than the ones in Space.
*
* Functions:
* Dish() - default constructor
* Parameters: none
* Return Type: n/a
* Purpose: default constructor for Dish, sets
* the type of the space appropriately and sets
* all Space* variables to nullptr
* ~Dish() - default destructor
* Parameters: none
* Return Type: n/a
* Purpose: default destructor for Dish, 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 DISH_H
#define DISH_H
#include "Space.hpp"
#include "ingredients.hpp"
#include <string>
#include <vector>
class Dish: public Space
{ public:
Dish();
~Dish();
int spaceMenu() override;
bool play(std::vector<ingredients> &basket) override;
std::string printType() override;
};
#endif //DISH_H