/
avititnev
/
gameGo
Обзор
Документация
Войти
/
avititnev
/
gameGo
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
Аналитика
Безопасность
master
engine.h
49 строк
800 B
sasha-aka2014
work, added a lot of stuff
23 дек 2022, 22:03
23 дек 2022, 22:03
76a7cfd
Код
Авторство
О чём код?
#pragma once #include <SFML/Graphics.hpp> #include <stdexcept> #include <iostream> #include <ctime> #include "idNode.h" #include "gameField.h" #include "gameLogic.h" #include "compLogic.h" #include "additionalFunctions.h" class engine { private: sf::RenderWindow window; sf::Image map_image; sf::Texture map; sf::Sprite s_map; sf::Font font; sf::Text textWin; sf::Text textPassUser; sf::Text textPassComp; sf::Text info; gameField* field; gameLogic* rule; compLogic* AI; id_node* turn; id_node* aiTurn; bool showTerr; bool aiOn; bool secret; bool passFirst; bool passSecond; bool end; bool showText; int counter; public: engine(sf::String _file, sf::String _fileFont); void start(); void comp_turn(bool& _wasTurn); void setUpText(); void draw(); void aboutGame(); };