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

#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.

Detailed Description

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.

Member Function Documentation

◆ Add()

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.

◆ popups()

const std::vector< Popup > & nanommo::CombatText::popups ( ) const
inline

Definition at line 42 of file combat_text.h.

◆ Update()

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.

Member Data Documentation

◆ kLife

float nanommo::CombatText::kLife = 1.5f
staticconstexpr

In seconds.

Definition at line 34 of file combat_text.h.


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