 |
Minesweeper2
V1.1.1
Game in C++ by Górka Mateusz
|
Go to the documentation of this file.
3 #include "SFML/Graphics.hpp"
95 void draw( sf::RenderTarget& target )
const;
void board(sf::RenderTarget &target, const Board *const board) const
Display board on the window.
Definition: Display.cpp:121
Templete of field view.
Definition: TField.hpp:13
void stopwatch(unsigned int seconds)
Update a value of stopwatch time.
Definition: Display.cpp:89
sf::Sprite mode_butt
Mode button spirte.
Definition: Display.hpp:31
sf::Text mine_txt
Mine counter counter text.
Definition: Display.hpp:40
void drawStart(sf::RenderTarget &target) const
Draw start button on interface.
Definition: Display.hpp:101
sf::Sprite mine_bg
Mine counter counter background.
Definition: Display.hpp:39
sf::Texture mine_texture
Mine counter counter backgroun texture.
Definition: Display.hpp:38
sf::Sprite stopwatch_bg
Stopwatch background.
Definition: Display.hpp:43
void hideHint()
Hide a hint.
Definition: Display.hpp:119
Vector2D * hintPos
Position of hint, NULL if no hint to display.
Definition: Display.hpp:49
Board of game.
Definition: Board.hpp:11
sf::Texture start_texture
Mine counter counter backgroun texture.
Definition: Display.hpp:35
sf::Texture flag_texture
Click mode flag texture.
Definition: Display.hpp:29
sf::Texture click_texture
Click mode "click" texture.
Definition: Display.hpp:30
sf::Text stopwatch_txt
Stopwatch text.
Definition: Display.hpp:44
sf::Font font
Font.
Definition: Display.hpp:33
Display()=default
Construct a new Display object (default constructor)
~Display()
Destroy the Display object.
Definition: Display.cpp:81
void mineCounter(short signed int mine)
Update value of mine on the display.
Definition: Display.cpp:99
void config(const Vector2D &size)
Config a Display class.
Definition: Display.cpp:30
#define NUM_FIELD_VIEW
Number of fields views.
Definition: Const.hpp:51
sf::Texture stopwatch_texture
Stopwatch background textrue.
Definition: Display.hpp:42
sf::Sprite start_butt
Mine counter counter background.
Definition: Display.hpp:36
static TField *const pointer(const Field &field)
Field code to element on Templete array.
Definition: Display.cpp:14
void draw(sf::RenderTarget &target) const
Draw a interface of the game.
Definition: Display.cpp:106
static TField * Template[NUM_FIELD_VIEW]
Templates of Field view.
Definition: Display.hpp:26
Field of the board.
Definition: Field.hpp:26
void changeButt(const bool mode)
Change a view of mode button.
Definition: Display.cpp:75
Care about display on the interface.
Definition: Display.hpp:11