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

#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

Detailed Description

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.

Constructor & Destructor Documentation

◆ Telegraphs()

nanommo::Telegraphs::Telegraphs ( const MonsterTable & monsters)
inlineexplicit

Definition at line 33 of file telegraphs.h.

Member Function Documentation

◆ shown()

const std::map< uint32_t, Telegraph > & nanommo::Telegraphs::shown ( ) const
inline

By the monster's id.

Definition at line 42 of file telegraphs.h.

◆ Update()

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.

Member Data Documentation

◆ kLate

float nanommo::Telegraphs::kLate = 0.25f
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.


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