diff options
author | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-01-27 19:47:41 +0000 |
commit | 66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985 (patch) | |
tree | e27aadabecd8dd910884280e6559ff9c94c3d73c /engines/agi | |
parent | 278857698dc7b1623096fe1ad12511dc4c886c7e (diff) | |
download | scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.gz scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.tar.bz2 scummvm-rg350-66e9d4f5e8f35b28f8abd9ce53a0da4da3ce8985.zip |
Removed trailing spaces.
svn-id: r30664
Diffstat (limited to 'engines/agi')
-rw-r--r-- | engines/agi/agi.cpp | 2 | ||||
-rw-r--r-- | engines/agi/menu.h | 2 | ||||
-rw-r--r-- | engines/agi/preagi_mickey.cpp | 4 | ||||
-rw-r--r-- | engines/agi/preagi_mickey.h | 12 | ||||
-rw-r--r-- | engines/agi/preagi_troll.cpp | 32 | ||||
-rw-r--r-- | engines/agi/preagi_troll.h | 2 | ||||
-rw-r--r-- | engines/agi/preagi_winnie.cpp | 32 | ||||
-rw-r--r-- | engines/agi/predictive.cpp | 6 | ||||
-rw-r--r-- | engines/agi/sound.h | 4 | ||||
-rw-r--r-- | engines/agi/sprite.cpp | 2 | ||||
-rw-r--r-- | engines/agi/sprite.h | 6 | ||||
-rw-r--r-- | engines/agi/text.cpp | 2 | ||||
-rw-r--r-- | engines/agi/view.cpp | 2 | ||||
-rw-r--r-- | engines/agi/wagparser.h | 38 |
14 files changed, 73 insertions, 73 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 59beb087f2..f0c3f62e30 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -235,7 +235,7 @@ void AgiEngine::processEvents() { // When used with a debug CRT library, isalpha will display a CRT assert // if passed a parameter that isn't EOF or in the range of 0 through 0xFF. if (key >= 0 && key <= 0xFF && isalpha(key)) { - // Key is A-Z. + // Key is A-Z. // Map Ctrl-A to 1, Ctrl-B to 2, etc. if (event.kbd.flags & Common::KBD_CTRL) { key = toupper(key) - 'A' + 1; diff --git a/engines/agi/menu.h b/engines/agi/menu.h index 0196c75583..d27dfa497d 100644 --- a/engines/agi/menu.h +++ b/engines/agi/menu.h @@ -81,7 +81,7 @@ private: void drawMenuOptionHilite(int hMenu, int vMenu); void newMenuSelected(int i); bool mouseOverText(unsigned int line, unsigned int col, char *s); - + }; } // End of namespace Agi diff --git a/engines/agi/preagi_mickey.cpp b/engines/agi/preagi_mickey.cpp index faf46f5a93..6944eee9f2 100644 --- a/engines/agi/preagi_mickey.cpp +++ b/engines/agi/preagi_mickey.cpp @@ -676,7 +676,7 @@ void Mickey::drawObj(ENUM_MSA_OBJECT iObj, int x0, int y0) { if (iObj == IDI_MSA_OBJECT_CRYSTAL) _vm->_picture->setPictureFlags(kPicFStep); - + _vm->_picture->setOffset(x0, y0); _vm->_picture->decodePicture(buffer, size, false, IDI_MSA_PIC_WIDTH, IDI_MSA_PIC_HEIGHT); _vm->_picture->setOffset(0, 0); @@ -892,7 +892,7 @@ void Mickey::drawLogo() { } _vm->_picture->showPic(10, 10, w, h); - + delete [] buffer; } diff --git a/engines/agi/preagi_mickey.h b/engines/agi/preagi_mickey.h index 5e421d24ac..8d982dc401 100644 --- a/engines/agi/preagi_mickey.h +++ b/engines/agi/preagi_mickey.h @@ -43,7 +43,7 @@ namespace Agi { #define IDS_MSA_CRYSTALS "%s CRYSTALS" const char IDS_MSA_CRYSTAL_NO[][3] = { - "NO", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9" + "NO", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9" }; const char IDS_MSA_TEMP_C[][5] = { " 20 ", " 480", "-200", " 430", "-185", "-230", "-130", "-150", "-215" @@ -52,7 +52,7 @@ const char IDS_MSA_TEMP_F[][5] = { " 68 ", " 897", "-328", " 807", "-301", "-382", "-202", "-238", "-355" }; const char IDS_MSA_PLANETS[][10] = { - "EARTH. ", "VENUS. ", "TRITON. ", "MERCURY.", "TITAN. ", + "EARTH. ", "VENUS. ", "TRITON. ", "MERCURY.", "TITAN. ", "PLUTO. ", "IO. ", "MARS. ", "OBERON. " }; @@ -111,7 +111,7 @@ const char IDS_MSA_INSERT_DISK[][40] = { #define IDI_MSA_MSG_STAR_MAP_2 48 #define IDI_MSA_MSG_SPACESUIT_WEAR 11 #define IDI_MSA_MSG_SPACESUIT_REMOVE 13 -#define IDI_MSA_MSG_SPACESUIT_0 3 +#define IDI_MSA_MSG_SPACESUIT_0 3 #define IDI_MSA_MSG_SPACESUIT_CANT_WEAR_ON_EARTH 12 #define IDI_MSA_MSG_SHIP_LAUNCH 16 #define IDI_MSA_MSG_SHIP_LAND 22 @@ -387,7 +387,7 @@ const char IDS_MSA_NAME_DAT[][13] = { }; const char IDS_MSA_NAME_PLANET[][10] = { - "EARTH", "VENUS", "TRITON", "MERCURY", "TITAN", + "EARTH", "VENUS", "TRITON", "MERCURY", "TITAN", "PLUTO", "IO", "MARS", "OBERON" }; @@ -397,7 +397,7 @@ const char IDS_MSA_NAME_PLANET_2[][10] = { }; const char IDS_MSA_ADDR_PLANET[][7] = { - "OB", "B", "OOBBB", "O", "OOBB", + "OB", "B", "OOBBB", "O", "OOBB", "OOOBBB", "OBB", "OOB", "OOOBB" }; @@ -429,7 +429,7 @@ enum ENUM_MSA_ITEM { }; const char IDS_MSA_NAME_ITEM[][15] = { - "A FLASHLIGHT", "A ROPE ", "A BONE ", "A LETTER", "A CROWBAR", "A WRENCH", + "A FLASHLIGHT", "A ROPE ", "A BONE ", "A LETTER", "A CROWBAR", "A WRENCH", "A MATTRESS", "A SCARF", "SUNGLASSES", "A SCALE ", "A ROCK " }; diff --git a/engines/agi/preagi_troll.cpp b/engines/agi/preagi_troll.cpp index 89dfe23781..d4ec193376 100644 --- a/engines/agi/preagi_troll.cpp +++ b/engines/agi/preagi_troll.cpp @@ -55,7 +55,7 @@ void Troll::drawMenu(const char *szMenu, int iSel) { bool Troll::getMenuSel(const char *szMenu, int *iSel, int nSel) { Common::Event event; int y; - + drawMenu(szMenu, *iSel); for (;;) { @@ -122,7 +122,7 @@ bool Troll::getMenuSel(const char *szMenu, int *iSel, int nSel) { _vm->_system->updateScreen(); _vm->_system->delayMillis(10); } - + return true; } @@ -193,7 +193,7 @@ void Troll::inventory() { sprintf(tmp, IDS_TRO_TREASURE_4, _treasuresLeft); _vm->drawStr(20, 10, kColorDefault, tmp); break; - } + } pressAnyKey(6); } @@ -258,7 +258,7 @@ void Troll::credits() { _vm->drawStr(15, 8, 10, IDS_TRO_CREDITS_4); _vm->drawStr(17, 7, 12, IDS_TRO_CREDITS_5); _vm->drawStr(19, 2, 14, IDS_TRO_CREDITS_6); - + _vm->_gfx->doUpdate(); pressAnyKey(); @@ -274,7 +274,7 @@ void Troll::tutorial() { _vm->printStr(IDS_TRO_TUTORIAL_0); _vm->getSelection(kSelSpace); - + _vm->clearScreen(0x55); _vm->setDefaultTextColor(0x0F); @@ -317,25 +317,25 @@ void Troll::tutorial() { _vm->drawStr(6, 1, kColorDefault, IDS_TRO_TUTORIAL_9); _vm->_gfx->doUpdate(); pressAnyKey(); - + _vm->clearScreen(0x19); _vm->drawStr(7, 1, kColorDefault, IDS_TRO_TUTORIAL_10); _vm->drawStr(8, 1, kColorDefault, IDS_TRO_TUTORIAL_11); _vm->_gfx->doUpdate(); pressAnyKey(); - + _vm->clearScreen(0x6E); _vm->drawStr(9, 1, kColorDefault, IDS_TRO_TUTORIAL_12); _vm->drawStr(10, 1, kColorDefault, IDS_TRO_TUTORIAL_13); _vm->_gfx->doUpdate(); pressAnyKey(); - + _vm->clearScreen(0x4C); _vm->drawStr(11, 1, kColorDefault, IDS_TRO_TUTORIAL_14); _vm->drawStr(12, 1, kColorDefault, IDS_TRO_TUTORIAL_15); _vm->_gfx->doUpdate(); pressAnyKey(); - + _vm->clearScreen(0x5D); _vm->drawStr(13, 1, kColorDefault, IDS_TRO_TUTORIAL_16); _vm->drawStr(14, 1, kColorDefault, IDS_TRO_TUTORIAL_17); @@ -369,7 +369,7 @@ void Troll::intro() { _vm->setDefaultTextColor(0x0f); drawPic(45, false, true); _vm->_gfx->doUpdate(); - + // wait for keypress and alternate message waitAnyKeyIntro(); @@ -377,7 +377,7 @@ void Troll::intro() { _vm->drawStr(22, 3, kColorDefault, IDS_TRO_INTRO_4); _vm->drawStr(23, 6, kColorDefault, IDS_TRO_INTRO_5); _vm->_gfx->doUpdate(); - + if (!_vm->getSelection(kSelYesNo)) tutorial(); @@ -391,7 +391,7 @@ void Troll::gameOver() { drawPic(42, true, true); playTune(4, 25); - + printUserMessage(16); printUserMessage(33); @@ -533,7 +533,7 @@ void Troll::printUserMessage(int msgId) { for (i = 0; i < _userMessages[msgId - 1].num; i++) { _vm->drawStr(21 + i, 1, kColorDefault, _userMessages[msgId - 1].msg[i]); } - + if (msgId == 34) { for (i = 0; i < 2; i++) playTune(5, 11); @@ -559,10 +559,10 @@ void Troll::gameLoop() { memset(_roomStates, 0, sizeof(_roomStates)); memset(_inventory, 0, sizeof(_inventory)); - + while (!done) { *menu = 0; - + currentOption = 0; numberOfOptions = drawRoom(menu); @@ -614,7 +614,7 @@ void Troll::gameLoop() { if (roomParam == 1) haveFlashlight = true; - _locMessagesIdx[_currentRoom] = IDO_TRO_LOCMESSAGES + + _locMessagesIdx[_currentRoom] = IDO_TRO_LOCMESSAGES + (roomParam + 42) * 39; pickupTreasure(roomParam); diff --git a/engines/agi/preagi_troll.h b/engines/agi/preagi_troll.h index 8519925e0a..b2764bcdb3 100644 --- a/engines/agi/preagi_troll.h +++ b/engines/agi/preagi_troll.h @@ -178,7 +178,7 @@ private: int _moves; bool _isTrollAway; - + int _inventory[IDI_TRO_MAX_TREASURE]; bool _soundOn; diff --git a/engines/agi/preagi_winnie.cpp b/engines/agi/preagi_winnie.cpp index af653d34c8..87d13bff3d 100644 --- a/engines/agi/preagi_winnie.cpp +++ b/engines/agi/preagi_winnie.cpp @@ -162,7 +162,7 @@ void Winnie::randomize() { } _game.iUsedObj[i] = iObj; - + done = false; while (!done) { iRoom = _vm->rnd(IDI_WTP_MAX_ROOM_NORMAL); @@ -201,8 +201,8 @@ void Winnie::intro() { } int Winnie::getObjInRoom(int iRoom) { - for (int iObj = 1; iObj < IDI_WTP_MAX_ROOM_OBJ; iObj++) - if (_game.iObjRoom[iObj] == iRoom) + for (int iObj = 1; iObj < IDI_WTP_MAX_ROOM_OBJ; iObj++) + if (_game.iObjRoom[iObj] == iRoom) return iObj; return 0; } @@ -267,12 +267,12 @@ int Winnie::parser(int pc, int index, uint8 *buffer) { // check if NSEW directions should be displayed if (hdr.roomNew[0]) - fCanSel[IDI_WTP_SEL_NORTH] = fCanSel[IDI_WTP_SEL_SOUTH] = + fCanSel[IDI_WTP_SEL_NORTH] = fCanSel[IDI_WTP_SEL_SOUTH] = fCanSel[IDI_WTP_SEL_EAST] = fCanSel[IDI_WTP_SEL_WEST] = true; // check if object in room or player carrying one setTakeDrop(); - + // check which rows have a menu option for (iSel = 0; iSel < IDI_WTP_MAX_OPTION; iSel++) { opcode = *(buffer + pc++); @@ -291,7 +291,7 @@ int Winnie::parser(int pc, int index, uint8 *buffer) { printStrWinnie((char *)(buffer + pc)); if (_vm->getSelection(kSelBackspace) == 1) return IDI_WTP_PAR_OK; - else + else return IDI_WTP_PAR_BACK; } @@ -558,7 +558,7 @@ void Winnie::dropObj(int iRoom) { // increase amount of objects returned, decrease amount of objects missing _game.nObjMiss--; _game.nObjRet++; - + // xor the dropped object with 0x80 to signify it has been dropped in the right place for (int i = 0; i < IDI_WTP_MAX_OBJ_MISSING; i++) { if (_game.iUsedObj[i] == _game.iObjHave) { @@ -569,10 +569,10 @@ void Winnie::dropObj(int iRoom) { // set flag according to dropped object's id _game.fGame[iCode] = 1; - + // player is carrying nothing _game.iObjHave = 0; - + if (!_game.nObjMiss) { // all objects returned, tell player to find party playSound(IDI_WTP_SND_FANFARE); @@ -605,7 +605,7 @@ void Winnie::dropObj(int iRoom) { void Winnie::dropObjRnd() { if (!_game.iObjHave) return; - + int iRoom = 0; bool done = false; @@ -708,7 +708,7 @@ void Winnie::drawMenu(char *szMenu, int iSel, int fCanSel[]) { _vm->drawStr(IDI_WTP_ROW_OPTION_4, IDI_WTP_COL_TAKE, IDA_DEFAULT, IDS_WTP_TAKE); if (fCanSel[IDI_WTP_SEL_DROP]) _vm->drawStr(IDI_WTP_ROW_OPTION_4, IDI_WTP_COL_DROP, IDA_DEFAULT, IDS_WTP_DROP); - + switch(iSel) { case IDI_WTP_SEL_OPT_1: case IDI_WTP_SEL_OPT_2: @@ -812,7 +812,7 @@ void Winnie::getMenuSel(char *szMenu, int *iSel, int fCanSel[]) { if (fCanSel[IDI_WTP_SEL_NORTH] && hotspotNorth.contains(event.mouse.x, event.mouse.y)) { _vm->_gfx->setCursorPalette(true); } else if (fCanSel[IDI_WTP_SEL_SOUTH] && hotspotSouth.contains(event.mouse.x, event.mouse.y)) { - _vm->_gfx->setCursorPalette(true); + _vm->_gfx->setCursorPalette(true); } else if (fCanSel[IDI_WTP_SEL_WEST] && hotspotWest.contains(event.mouse.x, event.mouse.y)) { _vm->_gfx->setCursorPalette(true); } else if (fCanSel[IDI_WTP_SEL_EAST] && hotspotEast.contains(event.mouse.x, event.mouse.y)) { @@ -974,7 +974,7 @@ void Winnie::getMenuSel(char *szMenu, int *iSel, int fCanSel[]) { } break; } - default: + default: if (!event.kbd.flags) { // if the control/alt/shift keys are not pressed keyHelp(); clrMenuSel(iSel, fCanSel); @@ -1062,7 +1062,7 @@ void Winnie::drawObjPic(int iObj, int x0, int y0) { uint8 *buffer = (uint8 *)malloc(2048); uint32 objSize = readObj(iObj, buffer); parseObjHeader(&objhdr, buffer, sizeof(WTP_OBJ_HDR)); - + _vm->_picture->setOffset(x0, y0); _vm->_picture->decodePicture(buffer + objhdr.ofsPic - _objOffset, objSize, 0, IDI_WTP_PIC_WIDTH, IDI_WTP_PIC_HEIGHT); _vm->_picture->setOffset(0, 0); @@ -1191,7 +1191,7 @@ void Winnie::loadGame() { // Note that the original saves variables as 16-bit integers, but only 8 bits are used. // Since we read the save file data as little-endian, we skip the first byte of each // variable - + infile->seek(0); // Jump back to the beginning of the file infile->readUint16LE(); // skip unused field @@ -1222,7 +1222,7 @@ void Winnie::loadGame() { for(i = 0; i < IDI_WTP_MAX_ROOM_OBJ; i++) _game.iObjRoom[i] = infile->readByte(); - // Note that saved games from the original interpreter have 2 more 16-bit fields here + // Note that saved games from the original interpreter have 2 more 16-bit fields here // which are ignored delete infile; diff --git a/engines/agi/predictive.cpp b/engines/agi/predictive.cpp index 7f41c27a6a..d96a5f3a0a 100644 --- a/engines/agi/predictive.cpp +++ b/engines/agi/predictive.cpp @@ -49,7 +49,7 @@ uint8 countWordsInString(char *str) { if (!str) return 0; - ptr = strchr(str, ' '); + ptr = strchr(str, ' '); if (!ptr) { debug("Invalid dictionary line"); return 0; @@ -111,7 +111,7 @@ bool AgiEngine::predictiveDialog(void) { "(7)pqrs", "(8)tuv", "(9)wxyz", "(#)next", "add", "<", - "Cancel", "OK", + "Cancel", "OK", "Pre", "(0) ", NULL }; const int colors[] = { @@ -198,7 +198,7 @@ bool AgiEngine::predictiveDialog(void) { || (mode == kModeAbc && _currentWord.size() && _currentWord.lastChar() != ' '))) { // Next color2 = 7; } - + // needs fixing, or remove it! bool _addIsActive = false; // FIXME: word adding is not implemented if (i == 10 && !_addIsActive) { // Add diff --git a/engines/agi/sound.h b/engines/agi/sound.h index 5d9bfda445..2e6902111c 100644 --- a/engines/agi/sound.h +++ b/engines/agi/sound.h @@ -129,9 +129,9 @@ struct IIgsOscillatorList { IIgsOscillator osc[MAX_OSCILLATORS]; ///< The oscillators /** Indexing operators for easier access to the oscillators. */ - const IIgsOscillator &operator()(uint index) const { return osc[index]; } + const IIgsOscillator &operator()(uint index) const { return osc[index]; } IIgsOscillator &operator()(uint index) { return osc[index]; } - + /** Reads an Apple IIGS oscillator list from the given stream. */ bool read(Common::SeekableReadStream &stream, uint oscillatorCount, bool ignoreAddr = false); bool finalize(Common::SeekableReadStream &uint8Wave); diff --git a/engines/agi/sprite.cpp b/engines/agi/sprite.cpp index 3126fb66af..2735809ac5 100644 --- a/engines/agi/sprite.cpp +++ b/engines/agi/sprite.cpp @@ -57,7 +57,7 @@ void *SpritesMgr::poolAlloc(int size) { uint8 *x; /* Adjust size to 32-bit boundary to prevent data misalignment - * errors. + * errors. */ size = (size + 3) & ~3; diff --git a/engines/agi/sprite.h b/engines/agi/sprite.h index 401446249b..3f9b329076 100644 --- a/engines/agi/sprite.h +++ b/engines/agi/sprite.h @@ -59,7 +59,7 @@ private: int blitCel(int x, int y, int spr, ViewCel *c, bool agi256_2); void objsSaveArea(Sprite *s); void objsRestoreArea(Sprite *s); - + FORCEINLINE int prioToY(int p); Sprite *newSprite(VtEntry *v); void sprAddlist(SpriteList &l, VtEntry *v); @@ -69,10 +69,10 @@ private: void freeList(SpriteList &l); void commitSprites(SpriteList &l); void eraseSprites(SpriteList &l); - void blitSprites(SpriteList &l); + void blitSprites(SpriteList &l); static bool testUpdating(VtEntry *v, AgiEngine *); static bool testNotUpdating(VtEntry *v, AgiEngine *); - + public: SpritesMgr(AgiEngine *agi, GfxMgr *gfx); ~SpritesMgr(); diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp index aea1468dcb..abaf763872 100644 --- a/engines/agi/text.cpp +++ b/engines/agi/text.cpp @@ -91,7 +91,7 @@ void AgiEngine::printText2(int l, const char *msg, int foff, int xoff, int yoff, } x1++; - + /* DF: changed the len-1 to len... */ if (x1 == len && m[1] != '\n') y1++, x1 = foff = 0; diff --git a/engines/agi/view.cpp b/engines/agi/view.cpp index 2eb11c9b91..07387161e8 100644 --- a/engines/agi/view.cpp +++ b/engines/agi/view.cpp @@ -45,7 +45,7 @@ void AgiEngine::lSetCel(VtEntry *v, int n) { // WORKAROUND: This is a very nasty hack to fix a bug in the KQ4 introduction // In its original form, it caused a lot of regressions, including KQ4 bugs and crashes // Refer to Sarien bug #588899 for the original issue - // Modifying this workaround to only work for a specific view in the KQ4 intro fixes several + // Modifying this workaround to only work for a specific view in the KQ4 intro fixes several // ScummVM bugs. Refer to bugs #1660486, #1660169, #1660192, #1660162 and #1660354 // FIXME: Remove this workaround and investigate the reason for the erroneous actor behavior // in the KQ4 introduction diff --git a/engines/agi/wagparser.h b/engines/agi/wagparser.h index 1fc554d522..2f4003315f 100644 --- a/engines/agi/wagparser.h +++ b/engines/agi/wagparser.h @@ -26,7 +26,7 @@ namespace Agi { /** - * WagProperty represents a single property from WinAGI's *.wag file. + * 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: * - Property code (Integer/Enumeration, 1 byte) @@ -62,7 +62,7 @@ public: PC_VIEW = 240, PC_UNDEFINED = 0x100 ///< An undefined property code (Added for ScummVM). }; - + /** * Property types taken from WinAGI 1.1.21's source code file WinAGI/AGIObjects.bas. * At the moment these aren't really at all needed by ScummVM. Just here if anyone decides to use them. @@ -97,7 +97,7 @@ public: * No property header or property data in it. */ WagProperty(); - + /** * Destructor. Releases allocated memory if any etc. The usual. */ @@ -119,7 +119,7 @@ protected: * Sets the default values for member variables. */ void setDefaults(); - + /** * Delete's the property's data from memory if we have it, otherwise does nothing. */ @@ -138,7 +138,7 @@ public: * @return True if reading was a success, false otherwise. */ bool read(Common::SeekableReadStream &stream); - + /** * Clears the property. * After this the property is empty. No header or data. @@ -146,7 +146,7 @@ public: void clear(); // Public access functions -public: +public: /** * Was the property read ok from the source stream? */ @@ -157,25 +157,25 @@ public: * @return The property's code if readOk(), PC_UNDEFINED otherwise. */ enum WagPropertyCode getCode() const { return _propCode; }; - + /** * Return the property's type. * @return The property's type if readOk(), PT_UNDEFINED otherwise. - */ + */ enum WagPropertyType getType() const { return _propType; }; - + /** * Return the property's number. * @return The property's number if readOk(), 0 otherwise. - */ + */ byte getNumber() const { return _propNum; }; - + /** * Return the property's data's length. * @return The property's data's length if readOk(), 0 otherwise. */ uint16 getSize() const { return _propSize; } - + /** * Return property's data. Constant access version. * Can be used as a C-style string (i.e. this is guaranteed to have a trailing zero). @@ -200,16 +200,16 @@ protected: */ class WagFileParser { // Constants, type definitions, enumerations etc. -public: - static const uint WINAGI_VERSION_LENGTH = 16; ///< WinAGI's version string's length (Always 16) +public: + static const uint WINAGI_VERSION_LENGTH = 16; ///< WinAGI's version string's length (Always 16) typedef Common::Array<WagProperty> PropertyList; ///< A type definition for an array of *.wag file properties - + public: /** * Constructor. Creates a WagFileParser object in a default state. */ WagFileParser(); - + /** * Destructor. */ @@ -220,7 +220,7 @@ public: * @note After this you can access the loaded properties using getProperty() and getProperties() etc. * @param filename Name of the file to be parsed. * @return True if parsed successfully, false otherwise. - */ + */ bool parse(const char *filename); /** @@ -229,7 +229,7 @@ public: * @return The list of loaded properties. */ const PropertyList &getProperties() const { return _propList; }; - + /** * Get property with the given property code. * @note Use only after a call to parse() first. @@ -257,7 +257,7 @@ public: * @return AGI interpreter version number if successful, 0 otherwise. */ uint16 convertToAgiVersionNumber(const WagProperty &version); - + /** * Was the file parsed successfully? * @return True if file was parsed successfully, false otherwise. |