Make PositionLabels have direction status indicators
[cs356-p1-elevator.git] / main.cpp
index f49b107..5ac3fe9 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -8,7 +8,7 @@ int main (int argc, char *argv[])
        int floors = 7;
        int elevators = 3;
 
-#define USE_STATIC_FLOORS 1
+//#define USE_STATIC_FLOORS 1
 #ifndef USE_STATIC_FLOORS
        do
        {
@@ -64,9 +64,9 @@ int main (int argc, char *argv[])
 }
 
 
-void gui_update_position_label (int elevator, float new_position)
+void gui_update_position_label (int elevator, float new_position, Direction direction)
 {
-       thegui->gui_update_position_label (elevator, new_position);
+       thegui->gui_update_position_label (elevator, new_position, direction);
 }
 
 void gui_unpress_call_button (int floor, Direction direction)