Refactors constants out of Freebies.h.
This commit is contained in:
@@ -14,6 +14,42 @@ using namespace Test;
|
||||
using namespace std;
|
||||
} // End namespace
|
||||
|
||||
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 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 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 kFreebieVirtueCost = 2;
|
||||
const std::string kFreebieVirtueName = "Virtue";
|
||||
const std::string kFreebieVirtueLabel = "Add a virtue dot 2 points";
|
||||
const FreebieType kFreebieVirtue = {kFreebieVirtueId, kFreebieVirtueCost, kFreebieVirtueName, kFreebieVirtueLabel};
|
||||
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 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 kFreebieShowCharacterSheetCost = 0;
|
||||
const std::string kFreebieShowCharacterSheetName = "Show character sheet";
|
||||
const std::string kFreebieShowCharacterSheetLabel = "Show character sheet";
|
||||
const FreebieType kFreebieShowCharacterSheet = {kFreebieShowCharacterSheetId,
|
||||
kFreebieShowCharacterSheetCost,
|
||||
kFreebieShowCharacterSheetName,
|
||||
kFreebieShowCharacterSheetLabel};
|
||||
|
||||
TestResults test_FreebieType_operator_extract() {
|
||||
auto fnToTest = [](const FreebieType& freebie) -> string {
|
||||
ostringstream os;
|
||||
|
||||
Reference in New Issue
Block a user