Initial scaffolding of tracking silver rupee counts.

This commit is contained in:
Christopher Leggett 2024-02-10 16:14:09 -05:00
parent 3fc40fa3ff
commit e7113b1e27
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79
3 changed files with 39 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include "3drando/text.hpp" #include "3drando/text.hpp"
#include "hint.h" #include "hint.h"
#include "fishsanity.h" #include "fishsanity.h"
#include "silver_rupee.h"
#include <memory> #include <memory>
#include <array> #include <array>
@ -114,6 +115,7 @@ class Context {
std::shared_ptr<Logic> mLogic; std::shared_ptr<Logic> mLogic;
std::shared_ptr<Trials> mTrials; std::shared_ptr<Trials> mTrials;
std::shared_ptr<Fishsanity> mFishsanity; std::shared_ptr<Fishsanity> mFishsanity;
std::shared_ptr<SilverRupees> mSilverRupees;
bool mSeedGenerated = false; bool mSeedGenerated = false;
bool mSpoilerLoaded = false; bool mSpoilerLoaded = false;
bool mPlandoLoaded = false; bool mPlandoLoaded = false;

View File

@ -0,0 +1,4 @@
#include "silver_rupee.h"
namespace Rando {
} // Rando

View File

@ -0,0 +1,33 @@
#ifndef SHIP_SILVER_RUPEE_H
#define SHIP_SILVER_RUPEE_H
#include <cstdint>
#include <array>
#include "randomizerTypes.h"
namespace Rando {
class SilverRupeesInfo {
public:
SilverRupeesInfo(uint8_t total, RandomizerGet randoGet);
const uint8_t GetCollected() const;
const uint8_t GetTotal() const;
void IncrementCollected();
private:
uint8_t mCollected;
uint8_t mTotal;
RandomizerGet mRandoGet;
};
class SilverRupees {
public:
SilverRupees();
private:
std::array<SilverRupeesInfo, 10> mSilverRupees;
};
} // Rando
#endif //SHIP_SILVER_RUPEE_H