2013-07-28 01:42:11 +00:00
|
|
|
#ifndef __SSFILE_HPP__
|
|
|
|
#define __SSFILE_HPP__
|
|
|
|
|
|
|
|
#include "Types.hpp"
|
|
|
|
|
|
|
|
// standard lib
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace zelda
|
|
|
|
{
|
2014-01-26 04:56:04 +00:00
|
|
|
class SkywardSwordQuest;
|
2013-07-28 01:42:11 +00:00
|
|
|
|
2014-01-26 04:56:04 +00:00
|
|
|
class SkywardSwordFile
|
2013-07-28 01:42:11 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
enum MagicNumbers
|
|
|
|
{
|
|
|
|
USMagic = 0x534F5545,
|
|
|
|
JAMagic = 0x534F554A,
|
|
|
|
EUMagic = 0x534F5550
|
|
|
|
};
|
|
|
|
|
2014-01-26 04:56:04 +00:00
|
|
|
SkywardSwordFile();
|
|
|
|
SkywardSwordFile(std::vector<SkywardSwordQuest*> quests);
|
|
|
|
~SkywardSwordFile();
|
2013-07-28 01:42:11 +00:00
|
|
|
|
2014-01-26 04:56:04 +00:00
|
|
|
void addQuest(SkywardSwordQuest* q);
|
|
|
|
SkywardSwordQuest* quest(Uint32 id);
|
|
|
|
std::vector<SkywardSwordQuest*> questList() const;
|
2013-07-28 01:42:11 +00:00
|
|
|
|
|
|
|
void setRegion(Region region);
|
|
|
|
Region region() const;
|
|
|
|
private:
|
|
|
|
Region m_region;
|
|
|
|
// A vector is a bit overkill
|
2014-01-26 04:56:04 +00:00
|
|
|
std::vector<SkywardSwordQuest*> m_quests;
|
2013-07-28 01:42:11 +00:00
|
|
|
Uint32 m_numQuests;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
#endif // __SSFILE_HPP__
|