My Project
UML Lab
Loading...
Searching...
No Matches
gameloop.h
Go to the documentation of this file.
1
6#ifndef GAME_HPP
7#define GAME_HPP
8
9#include <SFML/Graphics.hpp>
10#include "board.h"
11#include "player.h" // Включений файл для Player класу
12
18class Game {
19private:
24
29
34
38 sf::RenderWindow& window;
39
40public:
51 Game(sf::RenderWindow& window, Player& humanPlayer, Player& computerPlayer);
52
65 void run();
66};
67
68#endif // GAME_HPP
Declaration of the Board class and related structures.
Represents the game board and its functionality.
Definition board.h:21
Represents the main game logic and interaction.
Definition gameloop.h:18
void run()
Runs the main game loop.
Definition gameloop.cpp:31
Player & humanPlayer
Reference to the Player object representing the human player.
Definition gameloop.h:28
Player & computerPlayer
Reference to the Player object representing the computer player.
Definition gameloop.h:33
sf::RenderWindow & window
Reference to the SFML RenderWindow for displaying the game.
Definition gameloop.h:38
Game(sf::RenderWindow &window, Player &humanPlayer, Player &computerPlayer)
Constructs a Game object.
Definition gameloop.cpp:17
Board board
Instance of the Board class, representing the game board.
Definition gameloop.h:23
Class representing a player in the game.
Definition player.h:9