1#ifndef NANOMMO_CLIENT_HOTBAR_H_
2#define NANOMMO_CLIENT_HOTBAR_H_
10#include "protocol/nanommo.pb.h"
22 static constexpr int kRow = 9;
34 std::optional<uint32_t>
Build(
const std::vector<Figure>& figures,
35 const protocol::World& world, uint32_t target,
36 uint32_t target_player = 0);
39 std::vector<uint32_t>
Order()
const;
43 void Arrange(
const std::vector<uint32_t>& order);
49 std::vector<skills::Skill> slots_;
52 bool rearranged_ =
false;
static constexpr int kMostSlots
static constexpr int kRow
A row's worth of number keys.
void Arrange(const std::vector< uint32_t > &order)
std::vector< uint32_t > Order() const
The skills after the swing, by their ids, in their slots' order.
std::optional< uint32_t > Build(const std::vector< Figure > &figures, const protocol::World &world, uint32_t target, uint32_t target_player=0)
bool TakeRearranged()
Whether the player has swapped two skills since this was last asked.
Hotbar(const SkillTable &skills)