 |
Minesweeper2
V1.1.1
Game in C++ by Górka Mateusz
|
Go to the documentation of this file.
3 #include "SFML/Graphics.hpp"
26 TField(
const uint8_t
id );
39 {
sprite.setScale( 0.9, 0.9 ); }
45 {
sprite.setScale( 1, 1 ); }
53 inline void draw( sf::RenderTarget& target, sf::RenderStates state )
const override
void hint()
Set a hint style.
Definition: TField.hpp:38
Templete of field view.
Definition: TField.hpp:13
static const char *const TEXTURE_ARR[NUM_FIELD_VIEW]
Array of texture file code.
Definition: TField.hpp:61
sf::Sprite sprite
Sprite of field.
Definition: TField.hpp:16
#define GUI_MARGIN_T
GUI top margin.
Definition: Const.hpp:20
void draw(sf::RenderTarget &target, sf::RenderStates state) const override
Draw method.
Definition: TField.hpp:53
void set(const Vector2D &pos)
Set position.
Definition: TField.hpp:32
T x
X coordinate of vectior.
Definition: Vector2D.hpp:11
TField()=delete
Constructor deleted.
#define NUM_FIELD_VIEW
Number of fields views.
Definition: Const.hpp:51
sf::Texture texture
Texture of field.
Definition: TField.hpp:15
#define FIELD_SIZE
Sizes of field on the board.
Definition: Const.hpp:19
void normal()
Remove hint style.
Definition: TField.hpp:44
T y
Y coordinate of vectior.
Definition: Vector2D.hpp:12