Advertisement
Guest User

Main.cpp

a guest
Aug 15th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <unistd.h>
  3. #include "../include/Core.hpp"
  4.  
  5. int main(int ac, char **av)
  6. {
  7.     Core core;
  8.  
  9.     if (core.errorHandlingGetInfo(ac, av) == 84)
  10.         return (84);
  11.     if (core.preloadGameLib() == 84)
  12.         return (84);
  13.     while (true) {
  14.         if (core.getMap()) {
  15.             core.gameAlgo(core.getMap());
  16.             core.checkReturn(core.getMap());
  17.             core.graphAlgo((core.getMap()));
  18.             usleep(90000);
  19.         }
  20.         else
  21.             exit (84);
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement