X-Git-Url: https://irasnyder.com/gitweb/?a=blobdiff_plain;f=elevator.hpp;h=0a7348095416f1c6dfcda0b38d58c4eb9ddafc52;hb=f95be7131a6221491745f0a001f45589aa6acca3;hp=36371a10ceaadd6940646376c7e8c1b0270430b4;hpb=0317803aa62dcbeecd3e18a456894d11dcfd16e1;p=cs356-p1-elevator.git diff --git a/elevator.hpp b/elevator.hpp index 36371a1..0a73480 100644 --- a/elevator.hpp +++ b/elevator.hpp @@ -13,6 +13,8 @@ #include "position.hpp" #include "stop.hpp" +class bad_direction { }; + typedef std::list 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: