-
Notifications
You must be signed in to change notification settings - Fork 0
/
Car.cpp
32 lines (28 loc) · 1.8 KB
/
Car.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
/*******************************************************************************
* Filename: Car.cpp *
* Author: Daniel Wilson *
* E-Mail: [email protected] *
* Date: 10 June 2017 *
* *
* Description: Provides the implementation of a Location derived class named *
* Car. The car is used as the escape location for the game, *
* *
*******************************************************************************/
#include "Location.hpp"
/*******************************************************************************
* Function: Car::Car *
* *
* Description: Initializes the Car to contain a proper description. *
* *
* Inputs: void *
* *
* Outputs: void *
*******************************************************************************/
Car::Car()
{
description = "What a junker. This thing probably won't start, even if ";
description += "your life depends on it. You see some slash marks by the ";
description += "gas tank––it's empty.";
item = NO_ITEM;
locationType = LocationType::CAR;
}