Use Finite State Machine to manage Elevator movement
[cs356-p1-elevator.git] / direction.hpp
index d33e617..b9863db 100644 (file)
@@ -7,7 +7,7 @@
 #ifndef DIRECTION_HPP
 #define DIRECTION_HPP
 
-enum direction { IDLE, UP, DOWN };
+typedef enum { IDLE, UP, DOWN, ALL } Direction;
 
 #endif /* DIRECTION_HPP */