|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <telegraphs.h>
Public Member Functions | |
| Telegraphs (const MonsterTable &monsters) | |
| void | Update (const protocol::World &world, float seconds) |
| const std::map< uint32_t, Telegraph > & | shown () const |
| By the monster's id. | |
Static Public Attributes | |
| static constexpr float | kLate = 0.25f |
The monsters' skills on their way, from the worlds the server sends, with the skills of each kind of monster from the content.
Definition at line 27 of file telegraphs.h.
|
inlineexplicit |
Definition at line 33 of file telegraphs.h.
|
inline |
By the monster's id.
Definition at line 42 of file telegraphs.h.
| void nanommo::Telegraphs::Update | ( | const protocol::World & | world, |
| float | seconds ) |
Follows the newest world, the seconds since the last frame on. A skill that's new shows where its monster stands, the way it faces, and stays there however the monster moves. Between worlds, each counts down by itself. One goes once it's landed, or its monster dies or goes.
Definition at line 15 of file telegraphs.cc.
|
staticconstexpr |
A world can come this late, in seconds, and say that a skill has more left than we've counted down to. One that says more is the next skill.
Definition at line 31 of file telegraphs.h.