-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutside.cpp
48 lines (40 loc) · 1.43 KB
/
outside.cpp
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
/*********************************************************************
** Program Filename: outside.cpp
** Author: Morgan Brenner
** Date: 03/15/2016
** Description: Outside class implementation
*********************************************************************/
#include "outside.hpp"
#include "contestant.hpp"
/*********************************************************************
** Function: Outside::Outside()
** Description: Default Constructor
*********************************************************************/
Outside::Outside()
:Space("Outside")
{
}
/*********************************************************************
** Function: Outside::~Outside()
** Description: Destructor
*********************************************************************/
Outside::~Outside()
{
}
/*********************************************************************
** Function: Outside::displayEnterMessage()
** Description: Runs all Outside functions
*********************************************************************/
void Outside::displayEntryMessage()
{
/*
** If Contestant has award, end game.
*/
if (c1->getBasketSize() == 0 || c1->getBack()->getType() != 4)
std::cout << "Nothing out here but a couple of sheep." << std::endl << std::endl;
else
{
std::cout << "Congratulations on your Bake Off victory!" << std::endl
<< "GAME OVER" << std::endl << std::endl;
}
}