Athena IO Library
ALTTPFile.hpp
1 #ifndef ALTTP_FILE_HPP
2 #define ALTTP_FILE_HPP
3 
4 #include "athena/Global.hpp"
5 #include <vector>
6 
7 namespace athena
8 {
9 
10 class ALTTPQuest;
11 
18 class ALTTPFile
19 {
20 public:
25  typedef std::vector<ALTTPQuest*>::iterator QuestIter;
26 
31  ALTTPFile();
32 
38  ALTTPFile(std::vector<ALTTPQuest*> questList, std::vector<ALTTPQuest*> backupList);
39 
40 
47  void setQuest(atUint32 id, ALTTPQuest* val);
52  std::vector<ALTTPQuest*> questList() const;
53 
61  ALTTPQuest* quest(atUint32 id) const;
62 
67  atUint32 questCount() const;
68 
69 private:
70 
71  std::vector<ALTTPQuest*> m_quests;
72  std::vector<ALTTPQuest*> m_backup;
73 };
74 
75 } // zelda
76 #endif // ALTTP_FILE_HPP
A Link to the Past data container class class.
Definition: ALTTPFile.hpp:18
A Link to the Past Quest container class.
Definition: ALTTPQuest.hpp:19
std::vector< ALTTPQuest * > questList() const
Returns the primary quest list.
ALTTPQuest * quest(atUint32 id) const
Returns a quest at the given index.
std::vector< ALTTPQuest * >::iterator QuestIter
Quest Iterator.
Definition: ALTTPFile.hpp:25
void setQuest(atUint32 id, ALTTPQuest *val)
Sets a quest at the given index.
ALTTPFile()
Default constructor.
atUint32 questCount() const
Returns the number of primary quests.