25 #ifndef AURORA_IFOFILE_H 26 #define AURORA_IFOFILE_H 30 #include <boost/noncopyable.hpp> 39 class SeekableReadStream;
89 void load(
bool repairNWNPremium =
false);
133 const std::vector<Common::UString> &
getHAKs()
const;
150 const std::vector<Common::UString> &
getAreas()
const;
152 const std::vector<Common::UString> &
getNSSCache()
const;
155 const std::vector<Common::UString> &
getQuests()
const;
157 const std::vector<Common::UString> &
getQuestDBs()
const;
160 const std::vector<Common::UString> &
getStoryNPCs()
const;
258 #endif // AURORA_IFOFILE_H uint8 _hourDawn
The hour dawn starts.
bool isSave() const
Is the module a save file?
int32 _maxWeatherIntensity
Maximum weather intensity.
const Common::UString & getTLK() const
Return the custom TLK table this module uses.
uint32 getMinutesPerHour() const
Return the number of real time minutes per game hour.
A class holding an UTF-8 string.
int32 getMaxWeatherIntensity() const
Return the maximum weather intensity.
uint32 _creatorID
ID of the IFO file creator.
std::vector< Common::UString > _storyNPCs
List of story NPCs used in the module.
void unload()
Unload a currently loaded IFO.
Common::UString _entryArea
The area the PC starts in.
uint32 getCreatorID() const
Return the ID of the IFO file creator.
float _entryZ
The Z position the PC starts in.
Common::UString _customTLK
The custom TLK the module uses.
const LocString & getDescription() const
Return the description of the module.
std::vector< Common::UString > _monsterNPCs
List of monster NPCs used in the module.
int32 _snowChance
Chance for snow.
void getEntryDirection(float &x, float &y) const
Return the entry direction.
int _minVersionMajor
Minimum major game version this module needs.
void getMinVersion(int &major, int &minor) const
Return the minimum game version the module needs to run.
uint8 _minutesPerHour
Number of real time minutes per game hour.
int _minVersionMinor
Minimum minor game version this module needs.
A simple scoped smart pointer template.
std::vector< Common::UString > _nssCache
Scripts that should be cached.
float _entryDirY
The Y orientation the PC starts in.
Common::UString _tag
The module's tag.
std::vector< Common::UString > _areas
Areas found in the module.
const std::vector< Common::UString > & getHAKs() const
Return the list of required HAK files.
void load(Common::SeekableReadStream *stream, bool repairNWNPremium=false)
Take over this stream and load an IFO out of it.
const std::vector< Common::UString > & getQuestDBs() const
Returns the list of quest databases used in the module.
std::vector< Common::UString > _questDBs
List of quest databases used in the module.
const std::vector< Common::UString > & getNSSCache() const
Return the list of NSS (script) files that should be cached.
byte _id[32]
The module's unique ID.
Common::UString _startMovie
The movie the module starts with.
float getXPScale() const
Get the number creature kill XP is multiplied by.
An IFO (module information) file, describing global module properties in many Aurora games...
const std::vector< Common::UString > & getStoryNPCs() const
Returns the list of story NPCs used in the module.
float _entryX
The X position the PC starts in.
std::vector< Common::UString > _haks
HAKs required by the module.
uint8 getDawnHour() const
Return the hour dawn starts.
const std::vector< Common::UString > & getAreas() const
Return the list of areas in the module.
float _entryDirX
The X orientation the PC starts in.
uint8 _startDay
Day the module starts.
Low-level type definitions to handle fixed width types portably.
A scoped plain pointer, allowing pointer-y access and normal deletion.
uint8 _startMonth
Month the module starts.
void parseVersion(const Common::UString &version)
Handling BioWare's localized strings.
void getStartTime(uint8 &hour, uint8 &day, uint8 &month, uint32 &year) const
Return the module's starting time.
uint32 _startYear
Year the module starts.
uint8 _hourDusk
The hour dusk starts.
LocString _name
The module's localized name.
const GFF3Struct * getGFF() const
Return the IFO's GFF struct.
const LocString & getName() const
Return the name of the module.
float _xpScale
The number creature kill XP is multiplied by.
const std::vector< Common::UString > & getQuests() const
Returns the list of quests used in the module.
int32 getMinWeatherIntensity() const
Return the minimum weather intensity.
uint32 _version
Version of this IFO file.
int32 getRainChance() const
Return the chance that it's going to rain.
const std::vector< Common::UString > & getMonsterNPCs() const
Returns the list of monster NPCs used in the module.
int32 _rainChance
Chance for rain.
uint8 _startHour
Hour the module starts.
uint16 _expansions
Bitfield of required expansions.
const Common::UString & getTag() const
Return the module's tag.
uint16 getExpansions() const
Return the list of required expansions.
void getEntryPosition(float &x, float &y, float &z) const
Return the entry position.
int32 _minWeatherIntensity
Minimum weather intensity.
const Common::UString & getEntryArea() const
Return the entry area.
float _entryY
The Y position the PC starts in.
Common::ScopedPtr< GFF3File > _gff
The module.ifo GFF.
Interface for a seekable & readable data stream.
const Common::UString & getStartMovie() const
Return the starting movie.
std::vector< Common::UString > _quests
List of quests used in the module.
int32 getSnowChance() const
Return the chance that it's going to snow.
LocString _description
The module's localized description.
uint32 getVersion() const
Return the version of this IFO file.
bool _isSave
Is this module a save?
uint8 getDuskHour() const
Return the hour dusk starts.