Refactors constants out of Character.h.

This commit is contained in:
2023-04-25 12:50:46 -07:00
parent 279c5d0893
commit 07af18f616
3 changed files with 20 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ using std::vector;
} // namespace
const int kBackgroundPoints = 5;
const int kInitialGeneration = 13;
CharacterType::CharacterType() {
// Scalars
@@ -741,4 +742,16 @@ int CharacterType::GetRoadValue() const {
void CharacterType::SetRoadValue(int value) {
road_value = value;
}
void CharacterType::SetGeneration(int value) {
generation = value;
}
int CharacterType::GetGeneration() const {
return generation;
}
int GetInitialGeneration() {
return kInitialGeneration;
}
} // End namespace SBF