42 lines
No EOL
581 B
C++
42 lines
No EOL
581 B
C++
// Define once
|
|
#ifndef H_NAVBAR
|
|
#define H_NAVBAR
|
|
|
|
// Includes
|
|
/// Externals
|
|
#include <engine/externals.h>
|
|
/// Engine
|
|
#include <engine/engine.h>
|
|
/// Game
|
|
#include <game/tilemap.h>
|
|
|
|
// Classes
|
|
class Navbar{
|
|
private:
|
|
// Variables
|
|
Tilemap* tilemap;
|
|
SDL_Texture* texture;
|
|
|
|
bool didClick;
|
|
|
|
// Functions
|
|
void _drawBackground();
|
|
void _drawFlagCounter();
|
|
void _drawFace();
|
|
void _drawTime();
|
|
|
|
Vector2 _getNumber(int number);
|
|
|
|
public:
|
|
// Variables
|
|
|
|
// Constructor
|
|
Navbar(Tilemap* tilemap);
|
|
|
|
// Functions
|
|
void Update();
|
|
void Draw();
|
|
};
|
|
|
|
// End definition
|
|
#endif |