2015-09-03 19:37:45 +00:00
|
|
|
|
#ifndef SKYWARDSWORDQUEST_HPP
|
2014-04-20 09:14:15 +00:00
|
|
|
|
#define SKYWARDSWORDQUEST_HPP
|
|
|
|
|
|
|
|
|
|
#include "Athena/Global.hpp"
|
2014-09-29 03:33:36 +00:00
|
|
|
|
#include "Athena/ZQuestFile.hpp"
|
2014-04-20 09:14:15 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
namespace Athena
|
|
|
|
|
{
|
2014-04-20 09:14:15 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
// TODO: Handle game specific data
|
|
|
|
|
class SkywardSwordQuest : public ZQuestFile
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
enum AmmoType
|
2014-11-29 03:32:37 +00:00
|
|
|
|
{
|
2015-09-03 19:37:45 +00:00
|
|
|
|
Arrows,
|
|
|
|
|
Bombs,
|
|
|
|
|
Seeds
|
|
|
|
|
};
|
2014-11-29 03:32:37 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
SkywardSwordQuest(std::unique_ptr<atUint8[]>&& data, atUint32 len);
|
2014-04-20 09:14:15 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
void setPlayerName(const std::string& name);
|
|
|
|
|
std::string playerName() const;
|
2014-11-29 03:32:37 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
void setRupeeCount(atUint16 value);
|
|
|
|
|
atUint16 rupeeCount();
|
|
|
|
|
void setAmmoCount(AmmoType type, atUint32 count);
|
|
|
|
|
atUint32 ammoCount(AmmoType type);
|
|
|
|
|
void setMaxHP(atUint16 val);
|
|
|
|
|
atUint16 maxHP();
|
|
|
|
|
float maxHearts();
|
|
|
|
|
void setSpawnHP(atUint16 val);
|
|
|
|
|
atUint16 spawnHP();
|
|
|
|
|
float spawnHearts();
|
|
|
|
|
void setCurrentHP(atUint16 val);
|
|
|
|
|
atUint16 currentHP();
|
|
|
|
|
float currentHearts();
|
|
|
|
|
std::string currentLocation();
|
|
|
|
|
std::string currentArea();
|
|
|
|
|
std::string currentLocationCopy();
|
2014-11-29 03:32:37 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
void setSkipData(std::unique_ptr<atUint8[]>&& data);
|
|
|
|
|
atUint8* skipData() const;
|
2014-04-20 09:14:15 +00:00
|
|
|
|
|
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
atUint32 slotChecksum();
|
|
|
|
|
atUint32 skipChecksum();
|
|
|
|
|
void fixChecksums();
|
2014-11-29 03:32:37 +00:00
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
void setNew(bool isNew);
|
|
|
|
|
bool isNew() const;
|
|
|
|
|
private:
|
|
|
|
|
std::unique_ptr<atUint8[]> m_skipData;
|
|
|
|
|
};
|
2014-04-20 09:14:15 +00:00
|
|
|
|
|
|
|
|
|
|
2015-09-03 19:37:45 +00:00
|
|
|
|
} // Athena
|
2014-04-20 09:14:15 +00:00
|
|
|
|
#endif // SSQUEST_HPP
|