-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontestant.hpp
51 lines (40 loc) · 1.1 KB
/
contestant.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
/*********************************************************************
** Program Filename: contestant.hpp
** Author: Morgan Brenner
** Date: 03/15/2016
** Description: Contestant class interface
*********************************************************************/
#ifndef CONTESTANT_HPP
#define CONTESTANT_HPP
#include "ingredient.hpp"
#include <list>
#include <algorithm>
class Space; /*forward declaration*/
class Contestant
{
protected:
std::string name;
Space* currentSpace;
std::list < Ingredient* > ingredientBasket;
public:
Contestant();
~Contestant();
void setCurrentSpace(Space* currentSpace);
Space* getCurrentSpace();
void setName(std::string name);
std::string getName();
void moveUp();
void moveDown();
void moveLeft();
void moveRight();
void addIngredient(Ingredient*);
void addIngredientFront(Ingredient*);
void removeIngredient();
void removeIngredientFront();
bool findIngredient(std::string s);
void displayIngredientBasket();
int getBasketSize();
Ingredient* getFront();
Ingredient* getBack();
};
#endif