|
nanoMMO 0.97.8
Building an MMO: The Engineering Series
|
#include <player_frame.h>
Public Member Functions | |
| PlayerFrame (std::map< uint32_t, factions::Faction > factions) | |
| void | Render (const Renderer &renderer) |
| void | Draw (const std::vector< Figure > &figures, const protocol::World &world) const |
Static Public Attributes | |
| static constexpr int | kPortraitPixels = 192 |
You, in the top left: your face in a ring, your name and level, your health and how far you are into your level, and the faction you've sworn to.
Definition at line 19 of file player_frame.h.
|
inlineexplicit |
Definition at line 21 of file player_frame.h.
| void nanommo::PlayerFrame::Draw | ( | const std::vector< Figure > & | figures, |
| const protocol::World & | world ) const |
Definition at line 89 of file player_frame.cc.
| void nanommo::PlayerFrame::Render | ( | const Renderer & | renderer | ) |
Draws your head and shoulders into the portrait, before the frame, as you look now.
Definition at line 72 of file player_frame.cc.
|
staticconstexpr |
The portrait's size, in pixels, twice what it's shown at on most screens, so that it's sharp on the rest.
Definition at line 26 of file player_frame.h.