Experimental Changes
[cs356-p1-elevator.git] / stop.cpp
1 #include "stop.hpp"
2
3 Stop::Stop (int floor, enum direction mydirection)
4         : Position(floor)
5         , _direction(mydirection)
6 {
7         // Intentionally Left Empty
8 }
9
10 Stop::Stop (Position pos, enum direction mydirection)
11         : Position (pos)
12         , _direction (mydirection)
13 {
14         // Intentionally Left Empty
15 }
16
17 bool Stop::operator== (Stop& rhs)
18 {
19         return (Position::operator==(rhs)) && (_direction == rhs._direction);
20 }
21
22 std::ostream& operator<< (std::ostream& os, Stop& rhs)
23 {
24         os << "Stop: " << "help me" << " dir=" << rhs._direction;
25         return os;
26 }
27
28 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */