My Project
 
Loading...
Searching...
No Matches
floatingtext.h
Go to the documentation of this file.
1#pragma once
2
3#include "bitmaptext.h"
4
5#include <map>
6#include <vector>
7
8class FloatingText :public BitmapText{
9private:
10 static const float LIFESPAN;
11 static const float DISTANCE;
12
13 float timeLeft;
14
15 int key;
16
17 float cameraZoom;
18
19 static std::map<int, std::vector<FloatingText*>> stacks;
20
21 static void push(FloatingText* txt, int key);
22public:
24
25 virtual void update();
26 virtual void kill();
27 virtual void destroy();
28
29 void reset(float x, float y, const std::string& text, int color);
30
31 static void show(float x, float y, const std::string& text, int color);
32 static void show(float x, float y, int key, const std::string& text, int color);
33};
virtual void destroy()
Definition floatingtext.cpp:97
void reset(float x, float y, const std::string &text, int color)
Definition floatingtext.cpp:103
static void show(float x, float y, const std::string &text, int color)
Definition floatingtext.cpp:127
virtual void update()
Definition floatingtext.cpp:58
FloatingText()
Definition floatingtext.cpp:48
virtual void kill()
Definition floatingtext.cpp:76