Experimental Changes
[cs356-p1-elevator.git] / elevator.hpp
index d78ecd8..cff6432 100644 (file)
@@ -8,7 +8,6 @@
 #define ELEVATOR_HPP
 
 #include <iostream>
-//#include <set>
 #include <vector>
 #include "position.hpp"
 #include "direction.hpp"
@@ -16,7 +15,7 @@
 
 
 enum door_status { CLOSED, OPEN };
-const int elevator_step = 0.1;
+const float elevator_step = 0.1;
 
 class bad_direction { };
 
@@ -37,7 +36,7 @@ class Elevator
                 * PURPOSE: going in the given direction.
                 *
                 * REQUIRE: floor is a valid floor
-                * REQUIRE: direction is a valid direction
+                * REQUIRE: direction is either UP or DOWN
                 *
                 * PROMISE: The elevator will stop at the floor when it gets there
                 */
@@ -64,9 +63,17 @@ class Elevator
                 */
                enum direction find_best_direction ();
 
+               /*
+                * PURPOSE: Figure out if we are currently at a Stop in _stops
+                *
+                * REQUIRE: Nothing
+                *
+                * PROMISE: Return true if we are at a Stop in _stops, false otherwise
+                */
+               bool currently_at_stop ();
+
        private:
                /* Storage for all of the places that we will be stopping */
-               //std::set<Stop> _stops;
                std::vector<Stop> _stops;
 
                /* Storage for the current elevator position */