Refactors constants out of Backgrounds.h.
This commit is contained in:
@@ -9,6 +9,30 @@ using std::string;
|
|||||||
using std::vector;
|
using std::vector;
|
||||||
} // End namespace
|
} // End namespace
|
||||||
|
|
||||||
|
const std::string kBackgroundAlliesLabel = "Allies";
|
||||||
|
const std::string kBackgroundContactsLabel = "Contacts";
|
||||||
|
const std::string kBackgroundFameLabel = "Fame";
|
||||||
|
const std::string kBackgroundGenerationLabel = "Generation";
|
||||||
|
const std::string kBackgroundHerdLabel = "Herd";
|
||||||
|
const std::string kBackgroundInfluenceLabel = "Influence";
|
||||||
|
const std::string kBackgroundMentorLabel = "Mentor";
|
||||||
|
const std::string kBackgroundResourcesLabel = "Resources";
|
||||||
|
const std::string kBackgroundRetainersLabel = "Retainers";
|
||||||
|
const std::string kBackgroundStatusLabel = "Status";
|
||||||
|
const std::string kBackgroundLabels[] = {
|
||||||
|
"",
|
||||||
|
kBackgroundAlliesLabel,
|
||||||
|
kBackgroundContactsLabel,
|
||||||
|
kBackgroundFameLabel,
|
||||||
|
kBackgroundGenerationLabel,
|
||||||
|
kBackgroundHerdLabel,
|
||||||
|
kBackgroundInfluenceLabel,
|
||||||
|
kBackgroundMentorLabel,
|
||||||
|
kBackgroundResourcesLabel,
|
||||||
|
kBackgroundRetainersLabel,
|
||||||
|
kBackgroundStatusLabel,
|
||||||
|
};
|
||||||
|
|
||||||
string GetBackgroundLabel(int backgroundId) {
|
string GetBackgroundLabel(int backgroundId) {
|
||||||
if (backgroundId > 0 && backgroundId <= kBackgroundsCount) {
|
if (backgroundId > 0 && backgroundId <= kBackgroundsCount) {
|
||||||
return kBackgroundLabels[backgroundId];
|
return kBackgroundLabels[backgroundId];
|
||||||
|
|||||||
@@ -15,41 +15,17 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
namespace SBF {
|
namespace SBF {
|
||||||
const int kBackgroundPoints = 5;
|
|
||||||
const int kBackgroundAlliesId = 1;
|
const int kBackgroundAlliesId = 1;
|
||||||
const std::string kBackgroundAlliesLabel = "Allies";
|
|
||||||
const int kBackgroundContactsId = 2;
|
const int kBackgroundContactsId = 2;
|
||||||
const std::string kBackgroundContactsLabel = "Contacts";
|
|
||||||
const int kBackgroundFameId = 3;
|
const int kBackgroundFameId = 3;
|
||||||
const std::string kBackgroundFameLabel = "Fame";
|
|
||||||
const int kBackgroundGenerationId = 4;
|
const int kBackgroundGenerationId = 4;
|
||||||
const std::string kBackgroundGenerationLabel = "Generation";
|
|
||||||
const int kBackgroundHerdId = 5;
|
const int kBackgroundHerdId = 5;
|
||||||
const std::string kBackgroundHerdLabel = "Herd";
|
|
||||||
const int kBackgroundInfluenceId = 6;
|
const int kBackgroundInfluenceId = 6;
|
||||||
const std::string kBackgroundInfluenceLabel = "Influence";
|
|
||||||
const int kBackgroundMentorId = 7;
|
const int kBackgroundMentorId = 7;
|
||||||
const std::string kBackgroundMentorLabel = "Mentor";
|
|
||||||
const int kBackgroundResourcesId = 8;
|
const int kBackgroundResourcesId = 8;
|
||||||
const std::string kBackgroundResourcesLabel = "Resources";
|
|
||||||
const int kBackgroundRetainersId = 9;
|
const int kBackgroundRetainersId = 9;
|
||||||
const std::string kBackgroundRetainersLabel = "Retainers";
|
|
||||||
const int kBackgroundStatusId = 10;
|
const int kBackgroundStatusId = 10;
|
||||||
const std::string kBackgroundStatusLabel = "Status";
|
|
||||||
const int kBackgroundsCount = 10;
|
const int kBackgroundsCount = 10;
|
||||||
const std::string kBackgroundLabels[] = {
|
|
||||||
"",
|
|
||||||
kBackgroundAlliesLabel,
|
|
||||||
kBackgroundContactsLabel,
|
|
||||||
kBackgroundFameLabel,
|
|
||||||
kBackgroundGenerationLabel,
|
|
||||||
kBackgroundHerdLabel,
|
|
||||||
kBackgroundInfluenceLabel,
|
|
||||||
kBackgroundMentorLabel,
|
|
||||||
kBackgroundResourcesLabel,
|
|
||||||
kBackgroundRetainersLabel,
|
|
||||||
kBackgroundStatusLabel,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// @brief Gets the label for a background with a specific id.
|
/// @brief Gets the label for a background with a specific id.
|
||||||
/// @param background_id The id of the background to get the label for.
|
/// @param background_id The id of the background to get the label for.
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ using std::string;
|
|||||||
using std::vector;
|
using std::vector;
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
const int kBackgroundPoints = 5;
|
||||||
|
|
||||||
CharacterType::CharacterType() {
|
CharacterType::CharacterType() {
|
||||||
// Scalars
|
// Scalars
|
||||||
name = "";
|
name = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user