This program is written for a Linux environment and is built using CMake. The main objective of this project is to simulate a simple elevator. User can create passengers that travel to chosen floors.
Firstly, user of the program need to click the numbered button above one of the platforms. Then, a human appears on the screen who travels to the floor that was previously selected. Elevator can take up to 8 passengers. The overall weight is displayed on the counter at the top of the screen. After 5 seconds without any user input or action, elevator goes back to first floor. Escape key or 'X' in the top right corner closes the program.
Project uses SFML library to display a window. Every object has it's own separate class and 'ObjectManager' operates the whole program. Floors and elevator have their own containers for humans. Elevator movement is based on a queue that chooses optimal route to drop off passengers.
git clone https://github.com/oskar-n/Project_4 &&
cd Project_4 &&
cd build &&
cmake -DCMAKE_BUILD_TYPE=Release .. &&
make -j4Hubert Rotkiewicz, Oskar Nakielski