2 * CS356 Project 01 -- Elevator Simulator
4 * Elevator Class Specification
12 #include "direction.hpp"
13 #include "position.hpp"
16 typedef enum { CLOSED, OPEN } DoorStatus;
17 typedef std::list<Stop> StopList;
23 Elevator (int starting_floor);
25 void stop_at (Stop &stop);
26 float distance_from (Position& pos) const;
28 bool is_idle () const;
31 /* Callbacks into the GUI */
32 void open_door () const;
33 void close_door () const;
34 void update_position () const;
36 /* Analyze the list of stops */
37 bool currently_at_stop () const;
39 /* Elevator Status Variables */
42 Position current_position_;
45 const float ELEVATOR_STEP;
49 #endif /* ELEVATOR_HPP */
51 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */