Logo Search packages:      
Sourcecode: scummvm version File versions  Download package

Public Types | Public Member Functions | Protected Member Functions | Protected Attributes

Agi::WagProperty Class Reference

#include <wagparser.h>

List of all members.

Public Types

enum  WagPropertyCode {
  PC_GAMEDESC = 129, PC_GAMEAUTHOR, PC_GAMEID, PC_INTVERSION,
  PC_GAMELAST, PC_GAMEVERSION, PC_GAMEABOUT, PC_GAMEEXEC,
  PC_RESDIR, PC_DEFSYNTAX, PC_INVOBJDESC = 144, PC_VOCABWORDDESC = 160,
  PC_PALETTE = 172, PC_USERESNAMES = 180, PC_LOGIC = 192, PC_PICTURE = 208,
  PC_SOUND = 224, PC_VIEW = 240, PC_UNDEFINED = 0x100
}
enum  WagPropertyType {
  PT_ID, PT_DESC, PT_SYNTAX, PT_CRC32,
  PT_KEY, PT_INST0, PT_INST1, PT_INST2,
  PT_MUTE0, PT_MUTE1, PT_MUTE2, PT_MUTE3,
  PT_TPQN, PT_ROOM, PT_VIS0, PT_VIS1,
  PT_VIS2, PT_VIS3, PT_ALL = 0xff, PT_UNDEFINED = 0x100
}

Public Member Functions

void clear ()
enum WagPropertyCode getCode () const
const char * getData () const
byte getNumber () const
uint16 getSize () const
enum WagPropertyType getType () const
WagPropertyoperator= (const WagProperty &other)
bool read (Common::SeekableReadStream &stream)
bool readOk () const
 WagProperty (const WagProperty &other)
 WagProperty ()
 ~WagProperty ()

Protected Member Functions

void deepCopy (const WagProperty &other)
void deleteData ()
void setDefaults ()

Protected Attributes

enum WagPropertyCode _propCode
 Property code (Part of the property's header)
char * _propData
 The property's data (Plus a trailing zero for C-style string access)
byte _propNum
 Property number (Part of the property's header)
uint16 _propSize
 Property's size (Part of the property's header)
enum WagPropertyType _propType
 Property type (Part of the property's header)
bool _readOk
 Was the property read ok from the source stream?

Detailed Description

WagProperty represents a single property from WinAGI's *.wag file. A property consists of a header and of data. The header consists of the following:

Definition at line 38 of file wagparser.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index