BUGFIX: Elevators did not handle Requests in the correct order
[cs356-p1-elevator.git] / position.cpp
index e0da0f4..1d4a293 100644 (file)
@@ -114,6 +114,11 @@ Position::operator float() const
        return temp;
 }
 
+Position::operator int() const
+{
+       return major_;
+}
+
 std::ostream& operator<< (std::ostream& os, const Position& rhs)
 {
        os << "Position(" << rhs.major_ << "." << rhs.minor_ << ")";