2013-02-16 18:28:30 +00:00
|
|
|
// This file is part of libZelda.
|
|
|
|
//
|
|
|
|
// libZelda is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// libZelda is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with libZelda. If not, see <http://www.gnu.org/licenses/>
|
|
|
|
|
|
|
|
#ifndef __ALTTP_QUEST_HPP__
|
|
|
|
#define __ALTTP_QUEST_HPP__
|
|
|
|
|
|
|
|
#include "Types.hpp"
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "ALTTPStructs.hpp"
|
|
|
|
#include "ALTTPEnums.hpp"
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
namespace zelda
|
|
|
|
{
|
|
|
|
|
2013-02-16 18:28:30 +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
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPQuest();
|
|
|
|
~ALTTPQuest();
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setRoomFlags
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setRoomFlags(std::vector<ALTTPRoomFlags*> flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setRoomFlags
|
|
|
|
* \param rf
|
|
|
|
* \param id
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setRoomFlags(ALTTPRoomFlags* rf, Uint32 id);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief roomFlags
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
std::vector<ALTTPRoomFlags*> roomFlags();
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief roomFlags
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPRoomFlags* roomFlags(Uint32 id);
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setOverworldEvents
|
|
|
|
* \param events
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setOverworldEvents(std::vector<ALTTPOverworldEvent*> events);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setOverworldEvents
|
|
|
|
* \param ow
|
|
|
|
* \param id
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setOverworldEvents(ALTTPOverworldEvent* ow, Uint32 id);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief overworldEvents
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
std::vector<ALTTPOverworldEvent*> overworldEvents() const;
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief overworldEvent
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPOverworldEvent* overworldEvent(Uint32 id) const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setInventory
|
|
|
|
* \param inv
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setInventory(ALTTPInventory* inv);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief inventory
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPInventory* inventory() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setRupeeMax
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setRupeeMax(Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief rupeeMax
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 rupeeMax() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setRupeeCurrent
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setRupeeCurrent(Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief rupeeCurrent
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 rupeeCurrent() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setCompasses
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setCompasses(ALTTPDungeonItemFlags flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief compasses
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPDungeonItemFlags compasses() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setBigKeys
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setBigKeys(ALTTPDungeonItemFlags flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief bigKeys
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPDungeonItemFlags bigKeys() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setDungeonMaps
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDungeonMaps(ALTTPDungeonItemFlags flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief dungeonMaps
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPDungeonItemFlags dungeonMaps() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setWishingPond
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setWishingPond(Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief wishingPond
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 wishingPond() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setHealthMax
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setHealthMax(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief healthMax
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 healthMax() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setHealth
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setHealth(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief health
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 health() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setMagicPower
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setMagicPower(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief magicPower
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 magicPower() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setKeys
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setKeys(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief keys
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 keys() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setBombUpgrades
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setBombUpgrades(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief bombUpgrades
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 bombUpgrades() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setArrowUpgrades
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setArrowUpgrades(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief arrowUpgrades
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 arrowUpgrades() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setHealthFiller
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setHealthFiller(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief healthFiller
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 healthFiller() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setMagicFiller
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setMagicFiller(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief magicFiller
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 magicFiller() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setPendants
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setPendants(ALTTPPendants val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief pendants
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPPendants pendants() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setBombFiller
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setBombFiller(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief bombFiller
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 bombFiller() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setArrowFiller
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setArrowFiller(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief arrowFiller
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 arrowFiller() const;
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setArrows
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setArrows(Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief arrows
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 arrows() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setAbilityFlags
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setAbilityFlags(ALTTPAbilities val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief abilityFlags
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPAbilities abilityFlags() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setCrystals
|
|
|
|
* \param val
|
|
|
|
*/
|
|
|
|
void setCrystals(ALTTPCrystals val);\
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief crystals
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPCrystals crystals() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setMagicUsage
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setMagicUsage(ALTTPMagicUsage val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief magicUsage
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPMagicUsage magicUsage() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setDungeonKeys
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDungeonKeys(std::vector<Uint8> val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setDungeonKeys
|
|
|
|
* \param id
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDungeonKeys(Uint32 id, Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief dungeonKeys
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 dungeonKeys(Uint32 id) const;
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief dungeonCount
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint32 dungeonCount() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setProgressIndicator
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setProgressIndicator(ALTTPProgressIndicator val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief progressIndicator
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPProgressIndicator progressIndicator() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setProgressFlags1
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setProgressFlags1(ALTTPProgressFlags1 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief progressFlags1
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPProgressFlags1 progressFlags1() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setMapIcon
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setMapIcon(ALTTPMapIcon val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief mapIcon
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPMapIcon mapIcon() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setStartLocation
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setStartLocation(ALTTPStartLocation val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief startLocation
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPStartLocation startLocation() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setProgressFlags2
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setProgressFlags2(ALTTPProgressFlags2 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief progressFlags2
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPProgressFlags2 progressFlags2() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setLightDarkWorldIndicator
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setLightDarkWorldIndicator(ALTTPLightDarkWorldIndicator val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief lightDarkWorldIndicator
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPLightDarkWorldIndicator lightDarkWorldIndicator() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setTagAlong
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setTagAlong(ALTTPTagAlong val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief tagAlong
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
ALTTPTagAlong tagAlong() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setOldManFlags
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setOldManFlags(std::vector<Uint8> flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setOldManFlag
|
|
|
|
* \param id
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setOldManFlag(Uint32 id, Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief oldManFlag
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 oldManFlag(Uint32 id);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief oldManFlagCount
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint32 oldManFlagCount() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setBombFlag
|
|
|
|
* \param flag
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setBombFlag(Uint8 flag);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief bombFlag
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 bombFlag() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setUnknown1
|
|
|
|
* \param flags
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setUnknown1(std::vector<Uint8> flags);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setUnknown1
|
|
|
|
* \param id
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setUnknown1(Uint32 id, Uint8 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief unknown1
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint8 unknown1(Uint32 id);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief unknown1Count
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint32 unknown1Count() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setPlayerName
|
|
|
|
* \param playerName
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setPlayerName(std::vector<Uint16> playerName);
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setPlayerName
|
|
|
|
* \param playerName
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setPlayerName(const std::string& playerName);
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief playerName
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
std::vector<Uint16> playerName() const;
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief playerNameToString
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
std::string playerNameToString() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setValid
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setValid(bool val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief valid
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
bool valid();
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setDungeonDeathTotals
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDungeonDeathTotals(std::vector<Uint16> val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief setDungeonDeathTotal
|
|
|
|
* \param id
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDungeonDeathTotal(Uint32 id, Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief dungeonDeathTotal
|
|
|
|
* \param id
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 dungeonDeathTotal(Uint32 id) const;
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief dungeonDeathTotalCount
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 dungeonDeathTotalCount() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setUnknown2
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setUnknown2(Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief unknown2
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 unknown2() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setDeathSaveCount
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setDeathSaveCount(Uint16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief deathSaveCount
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 deathSaveCount() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setPostGameDeathCounter
|
|
|
|
* \param val
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setPostGameDeathCounter(Int16 val);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief postGameDeathCounter
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Int16 postGameDeathCounter() const;
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
/*!
|
|
|
|
* \brief setChecksum
|
|
|
|
* \param checksum
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
void setChecksum(Uint16 checksum);
|
2013-07-21 03:57:20 +00:00
|
|
|
|
|
|
|
/*!
|
|
|
|
* \brief checksum
|
|
|
|
* \return
|
|
|
|
*/
|
2013-02-16 18:28:30 +00:00
|
|
|
Uint16 checksum() const;
|
|
|
|
private:
|
|
|
|
std::vector<ALTTPRoomFlags*> m_roomFlags;
|
|
|
|
std::vector<ALTTPOverworldEvent*> m_overworldEvents;
|
|
|
|
ALTTPInventory* m_inventory;
|
|
|
|
Uint16 m_rupeeMax;
|
|
|
|
Uint16 m_rupeeCurrent;
|
|
|
|
ALTTPDungeonItemFlags m_compasses;
|
|
|
|
ALTTPDungeonItemFlags m_bigKeys;
|
|
|
|
ALTTPDungeonItemFlags m_dungeonMaps;
|
|
|
|
Uint16 m_wishingPond;
|
|
|
|
Uint8 m_healthMax;
|
|
|
|
Uint8 m_health;
|
|
|
|
Uint8 m_magicPower;
|
|
|
|
Uint8 m_keys;
|
|
|
|
Uint8 m_bombUpgrades;
|
|
|
|
Uint8 m_arrowUpgrades;
|
|
|
|
Uint8 m_heartFiller;
|
|
|
|
Uint8 m_magicFiller;
|
|
|
|
ALTTPPendants m_pendants;
|
|
|
|
Uint8 m_bombFiller;
|
|
|
|
Uint8 m_arrowFiller;
|
|
|
|
Uint8 m_arrows;
|
|
|
|
ALTTPAbilities m_abilityFlags;
|
|
|
|
ALTTPCrystals m_crystals;
|
|
|
|
ALTTPMagicUsage m_magicUsage;
|
|
|
|
std::vector<Uint8> 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<Uint8> m_oldManFlags;
|
|
|
|
Uint8 m_bombFlag;
|
|
|
|
std::vector<Uint8> m_unknown1;
|
|
|
|
std::vector<Uint16> m_playerName;
|
|
|
|
Uint16 m_valid;
|
|
|
|
std::vector<Uint16> m_dungeonDeathTotals;
|
|
|
|
Uint16 m_unknown2;
|
|
|
|
Uint16 m_deathSaveCount;
|
|
|
|
Int16 m_postGameDeathCounter;
|
|
|
|
Uint16 m_checksum;
|
|
|
|
};
|
|
|
|
|
2013-07-21 03:57:20 +00:00
|
|
|
} // zelda
|
2013-02-16 18:28:30 +00:00
|
|
|
|
|
|
|
#endif // __ALTTP_QUEST_HPP__
|