#define ELEVATOR_HPP
#include <iostream>
-//#include <set>
#include <vector>
#include "position.hpp"
#include "direction.hpp"
enum door_status { CLOSED, OPEN };
-const int elevator_step = 0.1;
+const float elevator_step = 0.1;
class bad_direction { };
* 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
*/
*/
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 */