Stop inherits from Position
[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 bool Stop::operator== (Stop& rhs)
11 {
12         return (Position::operator==(rhs)) && (_direction == rhs._direction);
13 }
14
15 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */