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;
24 void stop_at (Stop &stop);
25 float distance_from (Position& pos) const;
27 bool is_idle () const;
30 /* Callbacks into the GUI */
31 void open_door () const;
32 void close_door () const;
33 void update_position () const;
35 /* Analyze the list of stops */
36 bool currently_at_stop () const;
38 /* Elevator Status Variables */
41 Position current_position_;
44 const float ELEVATOR_STEP;
48 #endif /* ELEVATOR_HPP */
50 /* vim: set ts=4 sts=4 sw=4 noexpandtab textwidth=112: */