nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
help_window.h
Go to the documentation of this file.
1#ifndef NANOMMO_CLIENT_HELP_WINDOW_H_
2#define NANOMMO_CLIENT_HELP_WINDOW_H_
3
4namespace nanommo {
5
6/// How to play, on H: a page for each part of the game, such as moving,
7/// fighting, items, quests, guilds and chat, and the keys.
8class HelpWindow {
9 public:
10 bool* mutable_visible() { return &visible_; }
11 void Toggle() { visible_ = !visible_; }
12
13 void Build();
14
15 private:
16 enum class Page {
17 kMoving,
18 kFighting,
19 kItems,
20 kQuests,
21 kGuilds,
22 kChat,
23 kKeys
24 };
25
26 bool visible_ = false;
27 Page page_ = Page::kMoving;
28};
29
30} // namespace nanommo
31
32#endif // NANOMMO_CLIENT_HELP_WINDOW_H_
bool * mutable_visible()
Definition help_window.h:10
Definition chat.cc:9