nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
boss_bar.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_BOSS_BAR_H_
2#define NANOMMO_CLIENT_BOSS_BAR_H_
3
4#include <cstdint>
5#include <vector>
6
7#include "client/animator.h"
8#include "content/monsters.h"
9
10namespace nanommo {
11
12/// In metres from you: a boss this near has its bar up, as you're in its
13/// fight, or about to be. Its leash is less.
14inline constexpr float kBossBarReach = 30.0f;
15
16/// The boss whose bar is up: the monster you picked, if it's a boss, or else
17/// the nearest boss within kBossBarReach, while it's alive. Or nullptr.
18const Figure* ShownBoss(const std::vector<Figure>& figures, uint32_t target);
19
20/// The boss's bar, across the top of the screen, under the target's frame:
21/// its name, its health, with a mark where each phase after the first starts,
22/// and the phase it's in.
23void DrawBossBar(const Figure& boss, const MonsterTable& monsters);
24
25} // namespace nanommo
26
27#endif // NANOMMO_CLIENT_BOSS_BAR_H_
Definition chat.cc:9
void DrawBossBar(const Figure &boss, const MonsterTable &monsters)
Definition boss_bar.cc:54
constexpr float kBossBarReach
Definition boss_bar.h:14
const Figure * ShownBoss(const std::vector< Figure > &figures, uint32_t target)
Definition boss_bar.cc:29
The kinds of monster, by id, and where they spawn.
Definition monsters.h:17