Refactors constants out of Freebies.h.
This commit is contained in:
@@ -17,109 +17,13 @@ const int kFreebiesCount = 7;
|
||||
const FreebieType kFreebieUnknown = {0, 0, "", ""};
|
||||
|
||||
const int kFreebieDisciplineId = 1;
|
||||
const int kFreebieDisciplineCost = 7;
|
||||
const std::string kFreebieDisciplineName = "Discipline";
|
||||
const std::string kFreebieDisciplineLabel = "Add a discipline dot 7 points";
|
||||
const FreebieType kFreebieDiscipline = {
|
||||
kFreebieDisciplineId, kFreebieDisciplineCost, kFreebieDisciplineName, kFreebieDisciplineLabel};
|
||||
|
||||
const int kFreebieAttributeId = 2;
|
||||
const int kFreebieAttributeCost = 5;
|
||||
const std::string kFreebieAttributeName = "Attribute";
|
||||
const std::string kFreebieAttributeLabel = "Add an attribute dot 5 points";
|
||||
const FreebieType kFreebieAttribute = {
|
||||
kFreebieAttributeId, kFreebieAttributeCost, kFreebieAttributeName, kFreebieAttributeLabel};
|
||||
|
||||
const int kFreebieAbilityId = 3;
|
||||
const int kFreebieAbilityCost = 2;
|
||||
const std::string kFreebieAbilityName = "Ability";
|
||||
const std::string kFreebieAbilityLabel = "Add an ability dot 2 points";
|
||||
const FreebieType kFreebieAbility = {kFreebieAbilityId, kFreebieAbilityCost, kFreebieAbilityName, kFreebieAbilityLabel};
|
||||
|
||||
const int kFreebieVirtueId = 4;
|
||||
const int kFreebieVirtueCost = 2;
|
||||
const std::string kFreebieVirtueName = "Virtue";
|
||||
const std::string kFreebieVirtueLabel = "Add a virtue dot 2 points";
|
||||
const FreebieType kFreebieVirtue = {kFreebieVirtueId, kFreebieVirtueCost, kFreebieVirtueName, kFreebieVirtueLabel};
|
||||
|
||||
// TODO: Make this configurable for VtDA
|
||||
const int kFreebieHumanityId = 5;
|
||||
const int kFreebieHumanityCost = 1;
|
||||
const std::string kFreebieHumanityName = "Humanity";
|
||||
const std::string kFreebieHumanityLabel = "Add a humanity dot 1 point";
|
||||
const FreebieType kFreebieHumanity = {
|
||||
kFreebieHumanityId, kFreebieHumanityCost, kFreebieHumanityName, kFreebieHumanityLabel};
|
||||
|
||||
const int kFreebieBackgroundId = 6;
|
||||
const int kFreebieBackgroundCost = 1;
|
||||
const std::string kFreebieBackgroundName = "Background";
|
||||
const std::string kFreebieBackgroundLabel = "Add a background dot 1 point";
|
||||
const FreebieType kFreebieBackground = {
|
||||
kFreebieBackgroundId, kFreebieBackgroundCost, kFreebieBackgroundName, kFreebieBackgroundLabel};
|
||||
|
||||
const int kFreebieShowCharacterSheetId = 7;
|
||||
const int kFreebieShowCharacterSheetCost = 0;
|
||||
const std::string kFreebieShowCharacterSheetName = "Show character sheet";
|
||||
const std::string kFreebieShowCharacterSheetLabel = "Show character sheet";
|
||||
const FreebieType kFreebieShowCharacterSheet = {kFreebieShowCharacterSheetId,
|
||||
kFreebieShowCharacterSheetCost,
|
||||
kFreebieShowCharacterSheetName,
|
||||
kFreebieShowCharacterSheetLabel};
|
||||
|
||||
const int kFreebieIds[] = {
|
||||
0,
|
||||
kFreebieDisciplineId,
|
||||
kFreebieAttributeId,
|
||||
kFreebieAbilityId,
|
||||
kFreebieVirtueId,
|
||||
kFreebieHumanityId,
|
||||
kFreebieBackgroundId,
|
||||
kFreebieShowCharacterSheetId,
|
||||
};
|
||||
|
||||
const int kFreebieCosts[] = {
|
||||
0,
|
||||
kFreebieDisciplineCost,
|
||||
kFreebieAttributeCost,
|
||||
kFreebieAbilityCost,
|
||||
kFreebieVirtueCost,
|
||||
kFreebieHumanityCost,
|
||||
kFreebieBackgroundCost,
|
||||
kFreebieShowCharacterSheetCost,
|
||||
};
|
||||
|
||||
const std::string kFreebieNames[] = {
|
||||
"",
|
||||
kFreebieDisciplineName,
|
||||
kFreebieAttributeName,
|
||||
kFreebieAbilityName,
|
||||
kFreebieVirtueName,
|
||||
kFreebieHumanityName,
|
||||
kFreebieBackgroundName,
|
||||
kFreebieShowCharacterSheetName,
|
||||
};
|
||||
|
||||
const std::string kFreebieLabels[] = {
|
||||
"",
|
||||
kFreebieDisciplineLabel,
|
||||
kFreebieAttributeLabel,
|
||||
kFreebieAbilityLabel,
|
||||
kFreebieVirtueLabel,
|
||||
kFreebieHumanityLabel,
|
||||
kFreebieBackgroundLabel,
|
||||
kFreebieShowCharacterSheetLabel,
|
||||
};
|
||||
|
||||
const FreebieType kFreebies[] = {
|
||||
kFreebieUnknown,
|
||||
kFreebieDiscipline,
|
||||
kFreebieAttribute,
|
||||
kFreebieAbility,
|
||||
kFreebieVirtue,
|
||||
kFreebieHumanity,
|
||||
kFreebieBackground,
|
||||
kFreebieShowCharacterSheet,
|
||||
};
|
||||
|
||||
/// @brief Writes a freebie to an ostream.
|
||||
/// @param os The ostream to write to.
|
||||
@@ -151,6 +55,7 @@ void FillFreebies(std::vector<FreebieType>& freebies);
|
||||
std::vector<FreebieType> GetFreebies();
|
||||
|
||||
std::vector<FreebieType> GetAvailableFreebies(int freebie_points);
|
||||
int GetFreebieCost(int id);
|
||||
|
||||
} // End namespace SBF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user