-
Notifications
You must be signed in to change notification settings - Fork 0
/
NoWater.cpp
49 lines (34 loc) · 1.29 KB
/
NoWater.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
49
/********************************************************************
* Filename: NoWater.cpp
* Author: Kim McLeod
* Date: 6.3.15
* Description: NoWater heir class implementation file
* ******************************************************************/
#include "Rooms.h"
#include "NoWater.h"
#include <ctime>
#include <iostream>
using namespace std;
/********************************************************************
* Function: NoWater
* Description: Constructor
* Parameters: name
* Pre-Conditions: instance of Rooms heir is created
* Post-Conditions: member variables are set
* ******************************************************************/
NoWater::NoWater(string name1) : Rooms()
{
name = name1;
type = "NW";
}
/********************************************************************
* Function: changeAir
* Description: returns int for breath based on room type
* Parameters: none
* Pre-Conditions: called on instance of Rooms heir
* Post-Conditions: returns int for breath based on room type
* ******************************************************************/
double NoWater::changeAir()
{
return 10.0;
}