group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
PlayerNicknames.hpp
Go to the documentation of this file.
1
16
17#pragma once
18
19#include <array>
20
22{
23
24// `const char*` rather than `std::string_view` — the assigner reaches
25// into `PlayerName::set(const char*)` which expects a NUL-terminated
26// source; `string_view::data()` doesn't promise that.
27inline constexpr std::array<const char*, 24> k_nicknames = {
28 // Earth predators / raptors — instantly recognisable.
29 "WOLF",
30 "FOX",
31 "HAWK",
32 "OWL",
33 "RAVEN",
34 "LYNX",
35 "OTTER",
36 "SHARK",
37 "ORCA",
38 "EAGLE",
39 "TIGER",
40 "COBRA",
41 "VIPER",
42 "MANTIS",
43 "JAGUAR",
44 "PANTHER",
45 "KESTREL",
46 "BADGER",
47 "FALCON",
48 "MOOSE",
49 "BISON",
50 // Mythological apex picks — round out the pool past the realistic ones.
51 "KRAKEN",
52 "PHOENIX",
53 "GRYPHON",
54};
55
56inline constexpr int k_nicknameCount = static_cast<int>(k_nicknames.size());
57
58} // namespace player_nicknames
Definition PlayerNicknames.hpp:22
constexpr int k_nicknameCount
Definition PlayerNicknames.hpp:56
constexpr std::array< const char *, 24 > k_nicknames
Definition PlayerNicknames.hpp:27