mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-10-31 23:55:06 -04:00
Initial scaffolding of tracking silver rupee counts.
This commit is contained in:
parent
3fc40fa3ff
commit
e7113b1e27
@ -7,6 +7,7 @@
|
||||
#include "3drando/text.hpp"
|
||||
#include "hint.h"
|
||||
#include "fishsanity.h"
|
||||
#include "silver_rupee.h"
|
||||
|
||||
#include <memory>
|
||||
#include <array>
|
||||
@ -114,6 +115,7 @@ class Context {
|
||||
std::shared_ptr<Logic> mLogic;
|
||||
std::shared_ptr<Trials> mTrials;
|
||||
std::shared_ptr<Fishsanity> mFishsanity;
|
||||
std::shared_ptr<SilverRupees> mSilverRupees;
|
||||
bool mSeedGenerated = false;
|
||||
bool mSpoilerLoaded = false;
|
||||
bool mPlandoLoaded = false;
|
||||
|
4
soh/soh/Enhancements/randomizer/silver_rupee.cpp
Normal file
4
soh/soh/Enhancements/randomizer/silver_rupee.cpp
Normal file
@ -0,0 +1,4 @@
|
||||
#include "silver_rupee.h"
|
||||
|
||||
namespace Rando {
|
||||
} // Rando
|
33
soh/soh/Enhancements/randomizer/silver_rupee.h
Normal file
33
soh/soh/Enhancements/randomizer/silver_rupee.h
Normal 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
|
Loading…
Reference in New Issue
Block a user