Threshold code was wrong
[cs356-p1-elevator.git] / elevator.hpp
index 36371a1..0a73480 100644 (file)
@@ -13,6 +13,8 @@
 #include "position.hpp"
 #include "stop.hpp"
 
+class bad_direction { };
+
 typedef std::list<Stop> StopList;
 
 enum State { STATE_IDLE, STATE_UP, STATE_DOWN, STATE_WAIT, STATE_OPEN_DOOR, STATE_CLOSE_DOOR };
@@ -30,6 +32,7 @@ class Elevator
                void move ();
                bool is_idle () const;
                int getLoad () const;
+               bool willStopAt (int floor, Direction direction) const;
 
        private: