|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <combat_text.h>
Public Member Functions | |
| void | Add (const protocol::Event &event, uint32_t you) |
| Adds what the event shows, to the player whose id is you. | |
| void | Update (float seconds) |
| Ages each by the frame's time, and drops the ones past their life. | |
| const std::vector< Popup > & | popups () const |
Static Public Attributes | |
| static constexpr float | kLife = 1.5f |
| In seconds. | |
What the events show, kept apart from the drawing, so that it can be tested without a window.
Definition at line 31 of file combat_text.h.
| void nanommo::CombatText::Add | ( | const protocol::Event & | event, |
| uint32_t | you ) |
Adds what the event shows, to the player whose id is you.
Definition at line 36 of file combat_text.cc.
|
inline |
Definition at line 42 of file combat_text.h.
| void nanommo::CombatText::Update | ( | float | seconds | ) |
Ages each by the frame's time, and drops the ones past their life.
Definition at line 66 of file combat_text.cc.
|
staticconstexpr |
In seconds.
Definition at line 34 of file combat_text.h.