Skip to content

ShacharMeir007/Flight_Simulator

Repository files navigation

Flight_Simulator

This is the Flight Simulator project

We received as input a text file containing commands to pass to the flight gear simulator

First a Lexer read each line in the text file and converted it to a vector of strings. each string represents a command to be made or an argument another command needs after iterating all the lines and constructing the commands vector we passed it to a Parser for execution.

The Parser iterated through the command vector each command was converted to the appropriate Command object we created for it.

the Parser asked the command object how many arguments it needs for execution and gave them to the object through the execute function.

We Open a server and a client both of which connected to the flight gear simulator providing us with the simulators current settings and a way to change them.

To Compile

run: g++ -std=c++14 /.cpp //*.cpp *.cpp -Wall -Wextra -Wshadow -Wnon-virtual-dtor -pedantic -o a.out -pthread
then run: ./a.out file.txt
file.txt should be the file of commands it should reside at the same folder you compile from for the simulator
github: https://github.com/ShacharMeir007/Flight_Simulator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published