Athena IO Library
ALTTPQuest.hpp
1 #ifndef ALTTP_QUEST_HPP
2 #define ALTTP_QUEST_HPP
3 
4 #include "athena/Global.hpp"
5 #include <string>
6 #include <vector>
7 #include "athena/ALTTPStructs.hpp"
8 #include "athena/ALTTPEnums.hpp"
9 
10 namespace athena
11 {
12 
20 {
21 public:
25  ALTTPQuest();
26  ~ALTTPQuest();
27 
32  void setRoomFlags(std::vector<ALTTPRoomFlags*> flags);
33 
39  void setRoomFlags(ALTTPRoomFlags* rf, atUint32 id);
40 
45  std::vector<ALTTPRoomFlags*> roomFlags();
46 
52  ALTTPRoomFlags* roomFlags(atUint32 id);
53 
58  void setOverworldEvents(std::vector<ALTTPOverworldEvent*> events);
59 
65  void setOverworldEvents(ALTTPOverworldEvent* ow, atUint32 id);
66 
71  std::vector<ALTTPOverworldEvent*> overworldEvents() const;
72 
78  ALTTPOverworldEvent* overworldEvent(atUint32 id) const;
79 
84  void setInventory(const ALTTPInventory& inv);
85 
90  const ALTTPInventory& inventory() const;
91 
96  void setRupeeMax(atUint16 val);
97 
102  atUint16 rupeeMax() const;
103 
108  void setRupeeCurrent(atUint16 val);
109 
114  atUint16 rupeeCurrent() const;
115 
121 
127 
132  void setBigKeys(ALTTPDungeonItemFlags flags);
133 
139 
145 
151 
156  void setWishingPond(atUint16 val);
157 
162  atUint16 wishingPond() const;
163 
168  void setHealthMax(atUint8 val);
169 
174  atUint8 healthMax() const;
175 
180  void setHealth(atUint8 val);
181 
186  atUint8 health() const;
187 
192  void setMagicPower(atUint8 val);
193 
198  atUint8 magicPower() const;
199 
204  void setKeys(atUint8 val);
205 
210  atUint8 keys() const;
211 
216  void setBombUpgrades(atUint8 val);
217 
222  atUint8 bombUpgrades() const;
223 
228  void setArrowUpgrades(atUint8 val);
229 
234  atUint8 arrowUpgrades() const;
235 
240  void setHealthFiller(atUint8 val);
241 
246  atUint8 healthFiller() const;
247 
252  void setMagicFiller(atUint8 val);
253 
258  atUint8 magicFiller() const;
259 
264  void setPendants(ALTTPPendants val);
265 
270  ALTTPPendants pendants() const;
271 
276  void setBombFiller(atUint8 val);
277 
282  atUint8 bombFiller() const;
283 
288  void setArrowFiller(atUint8 val);
289 
294  atUint8 arrowFiller() const;
295 
300  void setArrows(atUint8 val);
301 
306  atUint8 arrows() const;
307 
313 
319 
324  void setCrystals(ALTTPCrystals val);
325  \
326 
331  ALTTPCrystals crystals() const;
332 
337  void setMagicUsage(ALTTPMagicUsage val);
338 
343  ALTTPMagicUsage magicUsage() const;
344 
349  void setDungeonKeys(std::vector<atUint8> val);
350 
356  void setDungeonKeys(atUint32 id, atUint8 val);
357 
363  atUint8 dungeonKeys(atUint32 id) const;
364 
369  atUint32 dungeonCount() const;
370 
375  void setProgressIndicator(ALTTPProgressIndicator val);
376 
381  ALTTPProgressIndicator progressIndicator() const;
382 
388 
394 
399  void setMapIcon(ALTTPMapIcon val);
400 
405  ALTTPMapIcon mapIcon() const;
406 
411  void setStartLocation(ALTTPStartLocation val);
412 
417  ALTTPStartLocation startLocation() const;
418 
424 
430 
436 
442 
447  void setTagAlong(ALTTPTagAlong val);
448 
453  ALTTPTagAlong tagAlong() const;
454 
459  void setOldManFlags(std::vector<atUint8> flags);
460 
466  void setOldManFlag(atUint32 id, atUint8 val);
467 
473  atUint8 oldManFlag(atUint32 id);
474 
479  atUint32 oldManFlagCount() const;
480 
485  void setBombFlag(atUint8 flag);
486 
491  atUint8 bombFlag() const;
492 
497  void setUnknown1(std::vector<atUint8> flags);
498 
504  void setUnknown1(atUint32 id, atUint8 val);
505 
511  atUint8 unknown1(atUint32 id);
512 
517  atUint32 unknown1Count() const;
518 
523  void setPlayerName(std::vector<atUint16> playerName);
528  void setPlayerName(const std::string& playerName);
533  std::vector<atUint16> playerName() const;
538  std::string playerNameToString() const;
539 
544  void setValid(bool val);
545 
550  bool valid();
551 
556  void setDungeonDeathTotals(std::vector<atUint16> val);
557 
563  void setDungeonDeathTotal(atUint32 id, atUint16 val);
564 
570  atUint16 dungeonDeathTotal(atUint32 id) const;
571 
576  atUint16 dungeonDeathTotalCount() const;
577 
582  void setUnknown2(atUint16 val);
583 
588  atUint16 unknown2() const;
589 
594  void setDeathSaveCount(atUint16 val);
595 
600  atUint16 deathSaveCount() const;
601 
606  void setPostGameDeathCounter(atInt16 val);
607 
612  atInt16 postGameDeathCounter() const;
613 
618  void setChecksum(atUint16 checksum);
619 
624  atUint16 checksum() const;
625 private:
626  std::vector<ALTTPRoomFlags*> m_roomFlags;
627  std::vector<ALTTPOverworldEvent*> m_overworldEvents;
628  ALTTPInventory m_inventory;
629  atUint16 m_rupeeMax;
630  atUint16 m_rupeeCurrent;
631  ALTTPDungeonItemFlags m_compasses;
632  ALTTPDungeonItemFlags m_bigKeys;
633  ALTTPDungeonItemFlags m_dungeonMaps;
634  atUint16 m_wishingPond;
635  atUint8 m_healthMax;
636  atUint8 m_health;
637  atUint8 m_magicPower;
638  atUint8 m_keys;
639  atUint8 m_bombUpgrades;
640  atUint8 m_arrowUpgrades;
641  atUint8 m_heartFiller;
642  atUint8 m_magicFiller;
643  ALTTPPendants m_pendants;
644  atUint8 m_bombFiller;
645  atUint8 m_arrowFiller;
646  atUint8 m_arrows;
647  ALTTPAbilities m_abilityFlags;
648  ALTTPCrystals m_crystals;
649  ALTTPMagicUsage m_magicUsage;
650  std::vector<atUint8> m_dungeonKeys;
651  ALTTPProgressIndicator m_progressIndicator;
652  ALTTPProgressFlags1 m_progressFlags1;
653  ALTTPMapIcon m_mapIcon;
654  ALTTPStartLocation m_startLocation;
655  ALTTPProgressFlags2 m_progressFlags2;
656  ALTTPLightDarkWorldIndicator m_lightDarkWorldIndicator;
657  ALTTPTagAlong m_tagAlong;
658  std::vector<atUint8> m_oldManFlags;
659  atUint8 m_bombFlag;
660  std::vector<atUint8> m_unknown1;
661  std::vector<atUint16> m_playerName;
662  bool m_valid;
663  std::vector<atUint16> m_dungeonDeathTotals;
664  atUint16 m_unknown2;
665  atUint16 m_deathSaveCount;
666  atInt16 m_postGameDeathCounter;
667  atUint16 m_checksum;
668 };
669 
670 } // zelda
671 
672 #endif // ALTTP_QUEST_HPP
ALTTPProgressFlags1 progressFlags1() const
progressFlags1
atUint8 oldManFlag(atUint32 id)
oldManFlag
atUint16 wishingPond() const
wishingPond
atUint8 magicFiller() const
magicFiller
void setCompasses(ALTTPDungeonItemFlags flags)
setCompasses
bool valid()
valid
void setRupeeCurrent(atUint16 val)
setRupeeCurrent
ALTTPDungeonItemFlags dungeonMaps() const
dungeonMaps
void setProgressIndicator(ALTTPProgressIndicator val)
setProgressIndicator
void setRoomFlags(std::vector< ALTTPRoomFlags * > flags)
setRoomFlags
void setTagAlong(ALTTPTagAlong val)
setTagAlong
void setLightDarkWorldIndicator(ALTTPLightDarkWorldIndicator val)
setLightDarkWorldIndicator
void setCrystals(ALTTPCrystals val)
setCrystals
void setPostGameDeathCounter(atInt16 val)
setPostGameDeathCounter
atUint8 arrows() const
arrows
ALTTPOverworldEvent * overworldEvent(atUint32 id) const
overworldEvent
atUint32 dungeonCount() const
dungeonCount
atUint8 arrowFiller() const
arrowFiller
atUint16 checksum() const
checksum
void setHealth(atUint8 val)
setHealth
ALTTPLightDarkWorldIndicator lightDarkWorldIndicator() const
lightDarkWorldIndicator
A Link to the Past Quest container class.
Definition: ALTTPQuest.hpp:19
atInt16 postGameDeathCounter() const
postGameDeathCounter
void setDungeonDeathTotal(atUint32 id, atUint16 val)
setDungeonDeathTotal
atUint8 bombFlag() const
bombFlag
atUint8 keys() const
keys
atUint16 rupeeMax() const
rupeeMax
ALTTPPendants pendants() const
pendants
atUint16 dungeonDeathTotal(atUint32 id) const
dungeonDeathTotal
void setBombFlag(atUint8 flag)
setBombFlag
void setHealthFiller(atUint8 val)
setHealthFiller
ALTTPQuest()
ALTTPQuest.
void setDungeonKeys(std::vector< atUint8 > val)
setDungeonKeys
ALTTPCrystals crystals() const
crystals
void setUnknown2(atUint16 val)
setUnknown2
atUint8 healthFiller() const
healthFiller
atUint16 deathSaveCount() const
deathSaveCount
std::string playerNameToString() const
playerNameToString
void setOldManFlags(std::vector< atUint8 > flags)
setOldManFlags
atUint8 arrowUpgrades() const
arrowUpgrades
atUint8 dungeonKeys(atUint32 id) const
dungeonKeys
void setProgressFlags1(ALTTPProgressFlags1 val)
setProgressFlags1
void setPlayerName(std::vector< atUint16 > playerName)
setPlayerName
ALTTPDungeonItemFlags bigKeys() const
bigKeys
ALTTPStartLocation startLocation() const
startLocation
const ALTTPInventory & inventory() const
inventory
ALTTPProgressFlags2 progressFlags2() const
progressFlags2
std::vector< ALTTPRoomFlags * > roomFlags()
roomFlags
void setChecksum(atUint16 checksum)
setChecksum
void setWishingPond(atUint16 val)
setWishingPond
void setRupeeMax(atUint16 val)
setRupeeMax
void setBombUpgrades(atUint8 val)
setBombUpgrades
atUint8 bombFiller() const
bombFiller
void setDeathSaveCount(atUint16 val)
setDeathSaveCount
void setArrowUpgrades(atUint8 val)
setArrowUpgrades
ALTTPTagAlong tagAlong() const
tagAlong
void setBigKeys(ALTTPDungeonItemFlags flags)
setBigKeys
void setDungeonDeathTotals(std::vector< atUint16 > val)
setDungeonDeathTotals
atUint32 unknown1Count() const
unknown1Count
ALTTPAbilities abilityFlags() const
abilityFlags
void setStartLocation(ALTTPStartLocation val)
setStartLocation
ALTTPDungeonItemFlags compasses() const
compasses
atUint8 magicPower() const
magicPower
void setOverworldEvents(std::vector< ALTTPOverworldEvent * > events)
setOverworldEvents
atUint16 dungeonDeathTotalCount() const
dungeonDeathTotalCount
std::vector< atUint16 > playerName() const
playerName
void setMagicFiller(atUint8 val)
setMagicFiller
void setMagicPower(atUint8 val)
setMagicPower
atUint16 unknown2() const
unknown2
void setInventory(const ALTTPInventory &inv)
setInventory
std::vector< ALTTPOverworldEvent * > overworldEvents() const
overworldEvents
ALTTPMapIcon mapIcon() const
mapIcon
void setArrowFiller(atUint8 val)
setArrowFiller
void setHealthMax(atUint8 val)
setHealthMax
ALTTPProgressIndicator progressIndicator() const
progressIndicator
void setProgressFlags2(ALTTPProgressFlags2 val)
setProgressFlags2
void setValid(bool val)
setValid
void setOldManFlag(atUint32 id, atUint8 val)
setOldManFlag
atUint16 rupeeCurrent() const
rupeeCurrent
void setArrows(atUint8 val)
setArrows
atUint32 oldManFlagCount() const
oldManFlagCount
void setKeys(atUint8 val)
setKeys
void setBombFiller(atUint8 val)
setBombFiller
void setMagicUsage(ALTTPMagicUsage val)
setMagicUsage
void setAbilityFlags(ALTTPAbilities val)
setAbilityFlags
atUint8 health() const
health
atUint8 unknown1(atUint32 id)
unknown1
void setDungeonMaps(ALTTPDungeonItemFlags flags)
setDungeonMaps
atUint8 healthMax() const
healthMax
atUint8 bombUpgrades() const
bombUpgrades
void setMapIcon(ALTTPMapIcon val)
setMapIcon
void setPendants(ALTTPPendants val)
setPendants
ALTTPMagicUsage magicUsage() const
magicUsage
void setUnknown1(std::vector< atUint8 > flags)
setUnknown1