-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerson.cpp
More file actions
executable file
·66 lines (53 loc) · 1.23 KB
/
Person.cpp
File metadata and controls
executable file
·66 lines (53 loc) · 1.23 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
63
64
65
66
/*
* Copyright 2023 University of Michigan EECS183
*
* Person.cpp
* Project UID 848fee0125dbb5eb53ed294f20dbef81
*
* <#Names#>
* <#Uniqnames#>
*
* Final Project - Elevators
*/
#include "Person.h"
#include <iostream>
#include <cmath>
#include <sstream>
using namespace std;
Person::Person(string inputString) : Person() {
//TODO: Implement non-default constructor
}
bool Person::tick(int currentTime) {
//TODO: Implement tick
//Returning false to prevent compilation error
return false;
}
void Person::print(ostream &outs) {
//TODO: Implement print
}
//////////////////////////////////////////////////////
////// DO NOT MODIFY ANY CODE BENEATH THIS LINE //////
//////////////////////////////////////////////////////
Person::Person() {
turn = 0;
currentFloor = 0;
targetFloor = 0;
angerLevel = 0;
}
int Person::getTurn() const {
return turn;
}
int Person::getCurrentFloor() const {
return currentFloor;
}
int Person::getTargetFloor() const {
return targetFloor;
}
int Person::getAngerLevel() const {
return angerLevel;
}
ostream& operator<< (ostream& outs, Person p)
{
p.print(outs);
return outs;
}