Constants.hpp
Go to the documentation of this file.
1 // Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
2 
3 // We are making my contributions/submissions to this project solely in our
4 // personal capacity and are not conveying any rights to any intellectual
5 // property of any third parties.
6 
7 #ifndef ROSETTASTONE_CONSTANTS_HPP
8 #define ROSETTASTONE_CONSTANTS_HPP
9 
10 #include <cstddef>
11 
12 namespace RosettaStone
13 {
15 constexpr float VERSION = 0.3f;
16 
19 constexpr std::size_t NUM_PLAYER_CLASS = 9;
20 
22 constexpr std::size_t START_DECK_SIZE = 30;
23 
25 constexpr std::size_t MAX_DECK_SIZE = 60;
26 
28 constexpr std::size_t FIELD_SIZE = 7;
29 
31 constexpr std::size_t NUM_DRAW_CARDS_AT_START_FIRST = 3;
32 
34 constexpr std::size_t NUM_DRAW_CARDS_AT_START_SECOND = 4;
35 
37 constexpr std::size_t MANA_UPPER_LIMIT = 10;
38 
40 constexpr std::size_t HAND_SIZE = 10;
41 
42 // NOTE: 0 means my hero, 1 ~ 7 means my minion in field
43 // 8 means opponent hero, 9 ~ 15 means opponent minion in field.
45 constexpr std::size_t INDEX_MY_HERO = 0;
46 
48 constexpr std::size_t INDEX_MY_MINION = INDEX_MY_HERO + 1;
49 
52 
54 constexpr std::size_t INDEX_OPPONENT_MINION = INDEX_OPPONENT_HERO + 1;
55 
57 enum class PlayerType
58 {
59  RANDOM,
60  PLAYER1,
61  PLAYER2,
62 };
63 
66 constexpr std::size_t GAME_MAIN_MENU_SIZE = 3;
67 } // namespace RosettaStone
68 
69 #endif // ROSETTASTONE_CONSTANTS_HPP
constexpr std::size_t INDEX_MY_MINION
The index of my minion for targeting when player is played card.
Definition: Constants.hpp:48
constexpr std::size_t NUM_PLAYER_CLASS
Definition: Constants.hpp:19
constexpr std::size_t INDEX_OPPONENT_HERO
The index of opponent hero for targeting when player is played card.
Definition: Constants.hpp:51
constexpr std::size_t NUM_DRAW_CARDS_AT_START_SECOND
The number of cards that the player going second will be given.
Definition: Constants.hpp:34
constexpr float VERSION
Hearthstone++ version.
Definition: Constants.hpp:15
constexpr std::size_t HAND_SIZE
The maximum number of cards in your hand.
Definition: Constants.hpp:40
constexpr std::size_t NUM_DRAW_CARDS_AT_START_FIRST
The number of cards that the player going first will be given.
Definition: Constants.hpp:31
constexpr std::size_t MAX_DECK_SIZE
The maximum number of cards that can be stored in the deck during game.
Definition: Constants.hpp:25
constexpr std::size_t GAME_MAIN_MENU_SIZE
Definition: Constants.hpp:66
constexpr std::size_t INDEX_OPPONENT_MINION
The index of opponent minion for targeting when player is played card.
Definition: Constants.hpp:54
constexpr std::size_t FIELD_SIZE
The maximum number of minions that can be placed in the field.
Definition: Constants.hpp:28
Definition: AccountInfo.hpp:14
constexpr std::size_t INDEX_MY_HERO
The index of my hero for targeting when player is played card.
Definition: Constants.hpp:45
constexpr std::size_t MANA_UPPER_LIMIT
The maximum number of available/maximum mana.
Definition: Constants.hpp:37
constexpr std::size_t START_DECK_SIZE
The number of cards that can be stored in the deck at game start.
Definition: Constants.hpp:22
PlayerType
Enumeration that represents the player.
Definition: Constants.hpp:57