Skip to content

oskar-n/Project_4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project 4 - Elevator simulation


Project Description

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.


How to use

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.


Technical description

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.


Compiling

git clone https://github.com/oskar-n/Project_4 &&
cd Project_4 &&
cd build &&
cmake -DCMAKE_BUILD_TYPE=Release .. &&
make -j4

Creators

Hubert Rotkiewicz, Oskar Nakielski

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •