nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
nanommo::PlayerFrame Class Reference

#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

Detailed Description

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.

Constructor & Destructor Documentation

◆ PlayerFrame()

nanommo::PlayerFrame::PlayerFrame ( std::map< uint32_t, factions::Faction > factions)
inlineexplicit

Definition at line 21 of file player_frame.h.

Member Function Documentation

◆ Draw()

void nanommo::PlayerFrame::Draw ( const std::vector< Figure > & figures,
const protocol::World & world ) const

Definition at line 89 of file player_frame.cc.

◆ Render()

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.

Member Data Documentation

◆ kPortraitPixels

int nanommo::PlayerFrame::kPortraitPixels = 192
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.


The documentation for this class was generated from the following files: