athena/include/Athena/ALTTPQuest.hpp

673 lines
14 KiB
C++
Raw Permalink Normal View History

2015-03-01 20:42:39 +00:00
#ifndef ALTTP_QUEST_HPP
#define ALTTP_QUEST_HPP
2015-07-22 05:37:22 +00:00
#include "Athena/Global.hpp"
#include <string>
#include <vector>
#include "Athena/ALTTPStructs.hpp"
#include "Athena/ALTTPEnums.hpp"
2014-04-20 09:14:15 +00:00
namespace Athena
2013-07-21 03:57:20 +00:00
{
/*! \class ALTTPQuest
* \brief A Link to the Past Quest container class
*
* Contains all relevant data for an A Link to the Past
* Quest entry.
*/
class ALTTPQuest
{
public:
2013-07-21 03:57:20 +00:00
/*!
* \brief ALTTPQuest
*/
ALTTPQuest();
~ALTTPQuest();
2013-07-21 03:57:20 +00:00
/*!
* \brief setRoomFlags
* \param flags
*/
void setRoomFlags(std::vector<ALTTPRoomFlags*> flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief setRoomFlags
* \param rf
* \param id
*/
void setRoomFlags(ALTTPRoomFlags* rf, atUint32 id);
2013-07-21 03:57:20 +00:00
/*!
* \brief roomFlags
* \return
*/
std::vector<ALTTPRoomFlags*> roomFlags();
2013-07-21 03:57:20 +00:00
/*!
* \brief roomFlags
* \param id
* \return
*/
ALTTPRoomFlags* roomFlags(atUint32 id);
2013-07-21 03:57:20 +00:00
/*!
* \brief setOverworldEvents
* \param events
*/
void setOverworldEvents(std::vector<ALTTPOverworldEvent*> events);
2013-07-21 03:57:20 +00:00
/*!
* \brief setOverworldEvents
* \param ow
* \param id
*/
void setOverworldEvents(ALTTPOverworldEvent* ow, atUint32 id);
2013-07-21 03:57:20 +00:00
/*!
* \brief overworldEvents
* \return
*/
std::vector<ALTTPOverworldEvent*> overworldEvents() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief overworldEvent
* \param id
* \return
*/
ALTTPOverworldEvent* overworldEvent(atUint32 id) const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setInventory
* \param inv
*/
void setInventory(const ALTTPInventory& inv);
2013-07-21 03:57:20 +00:00
/*!
* \brief inventory
* \return
*/
const ALTTPInventory& inventory() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setRupeeMax
* \param val
*/
void setRupeeMax(atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief rupeeMax
* \return
*/
atUint16 rupeeMax() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setRupeeCurrent
* \param val
*/
void setRupeeCurrent(atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief rupeeCurrent
* \return
*/
atUint16 rupeeCurrent() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setCompasses
* \param flags
*/
void setCompasses(ALTTPDungeonItemFlags flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief compasses
* \return
*/
ALTTPDungeonItemFlags compasses() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setBigKeys
* \param flags
*/
void setBigKeys(ALTTPDungeonItemFlags flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief bigKeys
* \return
*/
ALTTPDungeonItemFlags bigKeys() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setDungeonMaps
* \param flags
*/
void setDungeonMaps(ALTTPDungeonItemFlags flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief dungeonMaps
* \return
*/
ALTTPDungeonItemFlags dungeonMaps() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setWishingPond
* \param val
*/
void setWishingPond(atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief wishingPond
* \return
*/
atUint16 wishingPond() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setHealthMax
* \param val
*/
void setHealthMax(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief healthMax
* \return
*/
atUint8 healthMax() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setHealth
* \param val
*/
void setHealth(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief health
* \return
*/
atUint8 health() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setMagicPower
* \param val
*/
void setMagicPower(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief magicPower
* \return
*/
atUint8 magicPower() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setKeys
* \param val
*/
void setKeys(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief keys
* \return
*/
atUint8 keys() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setBombUpgrades
* \param val
*/
void setBombUpgrades(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief bombUpgrades
* \return
*/
atUint8 bombUpgrades() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setArrowUpgrades
* \param val
*/
void setArrowUpgrades(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief arrowUpgrades
* \return
*/
atUint8 arrowUpgrades() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setHealthFiller
* \param val
*/
void setHealthFiller(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief healthFiller
* \return
*/
atUint8 healthFiller() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setMagicFiller
* \param val
*/
void setMagicFiller(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief magicFiller
* \return
*/
atUint8 magicFiller() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setPendants
* \param val
*/
void setPendants(ALTTPPendants val);
2013-07-21 03:57:20 +00:00
/*!
* \brief pendants
* \return
*/
ALTTPPendants pendants() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setBombFiller
* \param val
*/
void setBombFiller(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief bombFiller
* \return
*/
atUint8 bombFiller() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setArrowFiller
* \param val
*/
void setArrowFiller(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief arrowFiller
* \return
*/
atUint8 arrowFiller() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setArrows
* \param val
*/
void setArrows(atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief arrows
* \return
*/
atUint8 arrows() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setAbilityFlags
* \param val
*/
void setAbilityFlags(ALTTPAbilities val);
2013-07-21 03:57:20 +00:00
/*!
* \brief abilityFlags
* \return
*/
ALTTPAbilities abilityFlags() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setCrystals
* \param val
*/
2015-05-19 03:24:56 +00:00
void setCrystals(ALTTPCrystals val);
\
2013-07-21 03:57:20 +00:00
/*!
* \brief crystals
* \return
*/
ALTTPCrystals crystals() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setMagicUsage
* \param val
*/
void setMagicUsage(ALTTPMagicUsage val);
2013-07-21 03:57:20 +00:00
/*!
* \brief magicUsage
* \return
*/
ALTTPMagicUsage magicUsage() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setDungeonKeys
* \param val
*/
void setDungeonKeys(std::vector<atUint8> val);
2013-07-21 03:57:20 +00:00
/*!
* \brief setDungeonKeys
* \param id
* \param val
*/
void setDungeonKeys(atUint32 id, atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief dungeonKeys
* \param id
* \return
*/
atUint8 dungeonKeys(atUint32 id) const;
2013-07-21 03:57:20 +00:00
/*!
* \brief dungeonCount
* \return
*/
atUint32 dungeonCount() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setProgressIndicator
* \param val
*/
void setProgressIndicator(ALTTPProgressIndicator val);
2013-07-21 03:57:20 +00:00
/*!
* \brief progressIndicator
* \return
*/
ALTTPProgressIndicator progressIndicator() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setProgressFlags1
* \param val
*/
void setProgressFlags1(ALTTPProgressFlags1 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief progressFlags1
* \return
*/
ALTTPProgressFlags1 progressFlags1() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setMapIcon
* \param val
*/
void setMapIcon(ALTTPMapIcon val);
2013-07-21 03:57:20 +00:00
/*!
* \brief mapIcon
* \return
*/
ALTTPMapIcon mapIcon() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setStartLocation
* \param val
*/
void setStartLocation(ALTTPStartLocation val);
2013-07-21 03:57:20 +00:00
/*!
* \brief startLocation
* \return
*/
ALTTPStartLocation startLocation() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setProgressFlags2
* \param val
*/
void setProgressFlags2(ALTTPProgressFlags2 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief progressFlags2
* \return
*/
ALTTPProgressFlags2 progressFlags2() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setLightDarkWorldIndicator
* \param val
*/
void setLightDarkWorldIndicator(ALTTPLightDarkWorldIndicator val);
2013-07-21 03:57:20 +00:00
/*!
* \brief lightDarkWorldIndicator
* \return
*/
ALTTPLightDarkWorldIndicator lightDarkWorldIndicator() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setTagAlong
* \param val
*/
void setTagAlong(ALTTPTagAlong val);
2013-07-21 03:57:20 +00:00
/*!
* \brief tagAlong
* \return
*/
ALTTPTagAlong tagAlong() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setOldManFlags
* \param flags
*/
void setOldManFlags(std::vector<atUint8> flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief setOldManFlag
* \param id
* \param val
*/
void setOldManFlag(atUint32 id, atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief oldManFlag
* \param id
* \return
*/
atUint8 oldManFlag(atUint32 id);
2013-07-21 03:57:20 +00:00
/*!
* \brief oldManFlagCount
* \return
*/
atUint32 oldManFlagCount() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setBombFlag
* \param flag
*/
void setBombFlag(atUint8 flag);
2013-07-21 03:57:20 +00:00
/*!
* \brief bombFlag
* \return
*/
atUint8 bombFlag() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setUnknown1
* \param flags
*/
void setUnknown1(std::vector<atUint8> flags);
2013-07-21 03:57:20 +00:00
/*!
* \brief setUnknown1
* \param id
* \param val
*/
void setUnknown1(atUint32 id, atUint8 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief unknown1
* \param id
* \return
*/
atUint8 unknown1(atUint32 id);
2013-07-21 03:57:20 +00:00
/*!
* \brief unknown1Count
* \return
*/
atUint32 unknown1Count() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setPlayerName
* \param playerName
*/
void setPlayerName(std::vector<atUint16> playerName);
2013-07-21 03:57:20 +00:00
/*!
* \brief setPlayerName
* \param playerName
*/
void setPlayerName(const std::string& playerName);
2013-07-21 03:57:20 +00:00
/*!
* \brief playerName
* \return
*/
std::vector<atUint16> playerName() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief playerNameToString
* \return
*/
std::string playerNameToString() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setValid
* \param val
*/
void setValid(bool val);
2013-07-21 03:57:20 +00:00
/*!
* \brief valid
* \return
*/
bool valid();
2013-07-21 03:57:20 +00:00
/*!
* \brief setDungeonDeathTotals
* \param val
*/
void setDungeonDeathTotals(std::vector<atUint16> val);
2013-07-21 03:57:20 +00:00
/*!
* \brief setDungeonDeathTotal
* \param id
* \param val
*/
void setDungeonDeathTotal(atUint32 id, atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief dungeonDeathTotal
* \param id
* \return
*/
atUint16 dungeonDeathTotal(atUint32 id) const;
2013-07-21 03:57:20 +00:00
/*!
* \brief dungeonDeathTotalCount
* \return
*/
atUint16 dungeonDeathTotalCount() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setUnknown2
* \param val
*/
void setUnknown2(atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief unknown2
* \return
*/
atUint16 unknown2() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setDeathSaveCount
* \param val
*/
void setDeathSaveCount(atUint16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief deathSaveCount
* \return
*/
atUint16 deathSaveCount() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setPostGameDeathCounter
* \param val
*/
void setPostGameDeathCounter(atInt16 val);
2013-07-21 03:57:20 +00:00
/*!
* \brief postGameDeathCounter
* \return
*/
atInt16 postGameDeathCounter() const;
2013-07-21 03:57:20 +00:00
/*!
* \brief setChecksum
* \param checksum
*/
void setChecksum(atUint16 checksum);
2013-07-21 03:57:20 +00:00
/*!
* \brief checksum
* \return
*/
atUint16 checksum() const;
private:
std::vector<ALTTPRoomFlags*> m_roomFlags;
std::vector<ALTTPOverworldEvent*> m_overworldEvents;
ALTTPInventory m_inventory;
atUint16 m_rupeeMax;
atUint16 m_rupeeCurrent;
ALTTPDungeonItemFlags m_compasses;
ALTTPDungeonItemFlags m_bigKeys;
ALTTPDungeonItemFlags m_dungeonMaps;
atUint16 m_wishingPond;
atUint8 m_healthMax;
atUint8 m_health;
atUint8 m_magicPower;
atUint8 m_keys;
atUint8 m_bombUpgrades;
atUint8 m_arrowUpgrades;
atUint8 m_heartFiller;
atUint8 m_magicFiller;
ALTTPPendants m_pendants;
atUint8 m_bombFiller;
atUint8 m_arrowFiller;
atUint8 m_arrows;
ALTTPAbilities m_abilityFlags;
ALTTPCrystals m_crystals;
ALTTPMagicUsage m_magicUsage;
std::vector<atUint8> m_dungeonKeys;
ALTTPProgressIndicator m_progressIndicator;
ALTTPProgressFlags1 m_progressFlags1;
ALTTPMapIcon m_mapIcon;
ALTTPStartLocation m_startLocation;
ALTTPProgressFlags2 m_progressFlags2;
ALTTPLightDarkWorldIndicator m_lightDarkWorldIndicator;
ALTTPTagAlong m_tagAlong;
std::vector<atUint8> m_oldManFlags;
atUint8 m_bombFlag;
std::vector<atUint8> m_unknown1;
std::vector<atUint16> m_playerName;
bool m_valid;
std::vector<atUint16> m_dungeonDeathTotals;
atUint16 m_unknown2;
atUint16 m_deathSaveCount;
atInt16 m_postGameDeathCounter;
atUint16 m_checksum;
};
2013-07-21 03:57:20 +00:00
} // zelda
2015-03-01 20:42:39 +00:00
#endif // ALTTP_QUEST_HPP