22#ifndef AGI_WAGPARSER_H
23#define AGI_WAGPARSER_H
55 PC_VOCABWORDDESC = 160,
Definition: wagparser.h:212
const WagProperty * getProperty(const WagProperty::WagPropertyCode code) const
uint16 convertToAgiVersionNumber(const WagProperty &version)
bool checkAgiVersionProperty(const WagProperty &version) const
bool parsedOk() const
Definition: wagparser.h:287
bool parse(const Common::FSNode &node)
Common::Array< WagProperty > PropertyList
A type definition for an array of *.wag file properties.
Definition: wagparser.h:218
@ WINAGI_VERSION_LENGTH
WinAGI's version string's length (Always 16)
Definition: wagparser.h:216
bool _parsedOk
Did the parsing of the file go ok?
Definition: wagparser.h:307
bool endOfProperties(const Common::SeekableReadStream &stream) const
PropertyList _propList
List of loaded properties from the file.
Definition: wagparser.h:306
const PropertyList & getProperties() const
Definition: wagparser.h:253
void addPropFromIni(Common::INIFile &iniWagFile, Common::String section, Common::String key, Agi::WagProperty::WagPropertyCode code)
bool checkWagVersion(Common::SeekableReadStream &stream)
Definition: wagparser.h:37
enum WagPropertyCode _propCode
Property code (Part of the property's header)
Definition: wagparser.h:200
bool _readOk
Was the property read ok from the source stream?
Definition: wagparser.h:199
uint16 getSize() const
Definition: wagparser.h:176
WagProperty & operator=(const WagProperty &other)
byte _propNum
Property number (Part of the property's header)
Definition: wagparser.h:202
enum WagPropertyType getType() const
Definition: wagparser.h:164
bool read(Common::SeekableReadStream &stream)
WagPropertyType
Definition: wagparser.h:69
@ PT_UNDEFINED
An undefined property type (Added for ScummVM).
Definition: wagparser.h:89
enum WagPropertyType _propType
Property type (Part of the property's header)
Definition: wagparser.h:201
void setPropDataSize(Common::String str)
const char * getData() const
Definition: wagparser.h:183
enum WagPropertyCode getCode() const
Definition: wagparser.h:158
byte getNumber() const
Definition: wagparser.h:170
WagProperty(const WagProperty &other)
char * _propData
The property's data (Plus a trailing zero for C-style string access)
Definition: wagparser.h:204
void setPropCode(WagPropertyCode propCode)
void deepCopy(const WagProperty &other)
bool readOk() const
Definition: wagparser.h:152
uint16 _propSize
Property's size (Part of the property's header)
Definition: wagparser.h:203
WagPropertyCode
Definition: wagparser.h:43
@ PC_GAMEAUTHOR
Game author (WinAGI 1.1.21 limits these to 256 bytes)
Definition: wagparser.h:45
@ PC_GAMEEXEC
Game executable.
Definition: wagparser.h:51
@ PC_INTVERSION
Interpreter version (WinAGI 1.1.21 defaults to version 2.917)
Definition: wagparser.h:47
@ PC_GAMEDESC
Game description (WinAGI 1.1.21 limits these to 4096 bytes)
Definition: wagparser.h:44
@ PC_RESDIR
Resource directory name.
Definition: wagparser.h:52
@ PC_GAMEABOUT
About game (WinAGI 1.1.21 limits these to 4096 bytes)
Definition: wagparser.h:50
@ PC_GAMEVERSION
Game version (WinAGI 1.1.21 limits these to 256 bytes)
Definition: wagparser.h:49
@ PC_GAMELAST
Last edit date.
Definition: wagparser.h:48
@ PC_DEFSYNTAX
Default syntax.
Definition: wagparser.h:53
@ PC_GAMEID
Game ID.
Definition: wagparser.h:46
@ PC_UNDEFINED
An undefined property code (Added for ScummVM).
Definition: wagparser.h:62
Definition: ini-file.h:58