[Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.36,1.37 graphics.h,1.45,1.46 logic.cpp,1.129,1.130 logic.h,1.85,1.86 resource.cpp,1.30,1.31 resource.h,1.20,1.21 state.h,1.1,1.2
Gregory Montoir
cyx at users.sourceforge.net
Thu Dec 11 15:31:37 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.89,1.90
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.37,1.38 command.h,1.10,1.11 cutaway.cpp,1.89,1.90 cutaway.h,1.29,1.30 debug.cpp,1.2,1.3 debug.h,1.2,1.3 display.cpp,1.33,1.34 display.h,1.26,1.27 graphics.cpp,1.55,1.56 graphics.h,1.46,1.47 journal.cpp,1.8,1.9 journal.h,1.3,1.4 logic.cpp,1.130,1.131 logic.h,1.86,1.87 queen.cpp,1.51,1.52 queen.h,1.17,1.18 sound.cpp,1.15,1.16 sound.h,1.7,1.8 talk.cpp,1.58,1.59 talk.h,1.23,1.24 walk.cpp,1.30,1.31 walk.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv31934/queen
Modified Files:
command.cpp graphics.h logic.cpp logic.h resource.cpp
resource.h state.h
Log Message:
cleanup
Index: command.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/command.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- command.cpp 11 Dec 2003 13:26:13 -0000 1.36
+++ command.cpp 11 Dec 2003 21:04:02 -0000 1.37
@@ -311,43 +311,34 @@
uint16 i;
- // Command List Data
_numCmdList = READ_BE_UINT16(ptr); ptr += 2;
-
_cmdList = new CmdListData[_numCmdList + 1];
memset(&_cmdList[0], 0, sizeof(CmdListData));
for (i = 1; i <= _numCmdList; i++) {
_cmdList[i].readFrom(ptr);
}
- // Command AREA
_numCmdArea = READ_BE_UINT16(ptr); ptr += 2;
-
_cmdArea = new CmdArea[_numCmdArea + 1];
memset(&_cmdArea[0], 0, sizeof(CmdArea));
for (i = 1; i <= _numCmdArea; i++) {
_cmdArea[i].readFrom(ptr);
}
- // Command OBJECT
_numCmdObject = READ_BE_UINT16(ptr); ptr += 2;
-
_cmdObject = new CmdObject[_numCmdObject + 1];
memset(&_cmdObject[0], 0, sizeof(CmdObject));
for (i = 1; i <= _numCmdObject; i++) {
_cmdObject[i].readFrom(ptr);
}
- // Command INVENTORY
_numCmdInventory = READ_BE_UINT16(ptr); ptr += 2;
-
_cmdInventory = new CmdInventory[_numCmdInventory + 1];
memset(&_cmdInventory[0], 0, sizeof(CmdInventory));
for (i = 1; i <= _numCmdInventory; i++) {
_cmdInventory[i].readFrom(ptr);
}
- // Command GAMESTATE
_numCmdGameState = READ_BE_UINT16(ptr); ptr += 2;
_cmdGameState = new CmdGameState[_numCmdGameState + 1];
memset(&_cmdGameState[0], 0, sizeof(CmdGameState));
Index: graphics.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/graphics.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- graphics.h 3 Dec 2003 13:00:54 -0000 1.45
+++ graphics.h 11 Dec 2003 21:04:02 -0000 1.46
@@ -233,7 +233,7 @@
TextSlot _texts[GAME_SCREEN_HEIGHT];
uint8 _curTextColor;
- int _cameraBob; // cambob
+ int _cameraBob;
BamData _bam;
Index: logic.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/logic.cpp,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -d -r1.129 -r1.130
--- logic.cpp 11 Dec 2003 13:26:13 -0000 1.129
+++ logic.cpp 11 Dec 2003 21:04:02 -0000 1.130
@@ -714,8 +714,6 @@
_graphics->bankErase(10);
_graphics->bankErase(12);
- // TODO: TALKHEAD=0;
-
if (_currentRoom >= 114) {
_display->palFadeOut(0, 255, _currentRoom);
}
Index: logic.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/logic.h,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- logic.h 11 Dec 2003 13:26:13 -0000 1.85
+++ logic.h 11 Dec 2003 21:04:02 -0000 1.86
@@ -148,8 +148,6 @@
const char *objectName(uint16 objNum) const { return _objName[objNum]; }
const char *objectTextualDescription(uint16 objNum) const { return _objDescription[objNum]; }
- uint16 numFrames() const { return _numFrames; }
-
void zoneSet(uint16 screen, uint16 zone, uint16 x1, uint16 y1, uint16 x2, uint16 y2);
void zoneSet(uint16 screen, uint16 zone, const Box& box);
uint16 zoneIn(uint16 screen, uint16 x, uint16 y) const;
@@ -171,15 +169,17 @@
int16 entryObj() const { return _entryObj; }
void entryObj(int16 obj) { _entryObj = obj; }
+ uint16 numFrames() const { return _numFrames; }
+
void personSetData(int16 noun, const char *actorName, bool loadBank, Person *pp); // SET_PERSON_DATA
uint16 personSetup(uint16 noun, uint16 curImage); // SETUP_PERSON
uint16 personAllocate(uint16 noun, uint16 curImage); // ALLOCATE_PERSON
+ uint16 personFrames(uint16 bobNum) const { return _personFrames[bobNum]; }
uint16 animCreate(uint16 curImage, const Person *person); // CREATE_ANIM
void animErase(uint16 bobNum);
void animReset(uint16 bobNum);
void animSetup(const GraphicData *gd, uint16 firstImage, uint16 bobNum, bool visible); // FIND_GRAPHIC_ANIMS
- uint16 personFrames(uint16 bobNum) const { return _personFrames[bobNum]; }
void joeSetupFromBanks(const char *animBank, const char *standBank);
Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/resource.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- resource.cpp 1 Dec 2003 20:48:40 -0000 1.30
+++ resource.cpp 11 Dec 2003 21:04:02 -0000 1.31
@@ -24,11 +24,8 @@
namespace Queen {
-#define DEMO_JAS_VERSION_OFFSET 0x119A8
-#define JAS_VERSION_OFFSET 0x12484
-
-static const char *tableFilename = "queen.tbl";
+const char *Resource::_tableFilename = "queen.tbl";
const GameVersion Resource::_gameVersions[] = {
{ "PEM10", true, false, 0x00000008, 22677657 },
@@ -66,7 +63,7 @@
_resourceEntries = 1076;
_resourceTable = _resourceTablePEM10;
} else {
- error("Couldn't find tablefile '%s%s'", _datafilePath.c_str(), tableFilename);
+ error("Couldn't find tablefile '%s%s'", _datafilePath.c_str(), _tableFilename);
}
}
}
@@ -203,7 +200,7 @@
//we try to verify that it is indeed the version we think it is later on
const GameVersion *pgv = _gameVersions;
int i;
- for (i = 0; i < VER_NUMBER; ++i, ++pgv) {
+ for (i = 0; i < VER_COUNT; ++i, ++pgv) {
if (pgv->dataFileSize == dataFilesize) {
return pgv;
}
@@ -214,9 +211,9 @@
bool Resource::readTableFile() {
File tableFile;
- tableFile.open(tableFilename, _datafilePath);
+ tableFile.open(_tableFilename, _datafilePath);
if (!tableFile.isOpen())
- tableFile.open(tableFilename, ""); //try current directory
+ tableFile.open(_tableFilename, ""); //try current directory
if (tableFile.isOpen() && tableFile.readUint32BE() == 'QTBL') {
tableFile.seek(_gameVersion->tableOffset);
_resourceEntries = tableFile.readUint16BE();
Index: resource.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/resource.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- resource.h 1 Dec 2003 20:48:40 -0000 1.20
+++ resource.h 11 Dec 2003 21:04:02 -0000 1.21
@@ -41,7 +41,7 @@
VER_DEMO_PCGAMES = 9,
VER_DEMO = 10,
- VER_NUMBER = 11
+ VER_COUNT = 11
};
struct ResourceEntry {
@@ -80,6 +80,10 @@
bool writeSave(uint16 slot, const byte *saveData, uint32 size);
bool readSave(uint16 slot, byte *&ptr);
+ enum {
+ DEMO_JAS_VERSION_OFFSET = 0x119A8,
+ JAS_VERSION_OFFSET = 0x12484
+ };
protected:
File *_resourceFile;
@@ -91,6 +95,8 @@
const char *_savePath;
uint32 _resourceEntries;
ResourceEntry *_resourceTable;
+
+ static const char *_tableFilename;
static const GameVersion _gameVersions[];
static ResourceEntry _resourceTablePEM10[];
Index: state.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/state.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- state.h 11 Dec 2003 10:03:35 -0000 1.1
+++ state.h 11 Dec 2003 21:04:02 -0000 1.2
@@ -34,7 +34,6 @@
STATE_TALK_MUTE
};
-
enum StateGrab {
STATE_GRAB_NONE,
STATE_GRAB_DOWN,
@@ -42,12 +41,10 @@
STATE_GRAB_MID
};
-
enum StateOn {
STATE_ON_ON,
STATE_ON_OFF
};
-
enum StateUse {
STATE_USE,
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.89,1.90
- Next message: [Scummvm-cvs-logs] CVS: scummvm/queen command.cpp,1.37,1.38 command.h,1.10,1.11 cutaway.cpp,1.89,1.90 cutaway.h,1.29,1.30 debug.cpp,1.2,1.3 debug.h,1.2,1.3 display.cpp,1.33,1.34 display.h,1.26,1.27 graphics.cpp,1.55,1.56 graphics.h,1.46,1.47 journal.cpp,1.8,1.9 journal.h,1.3,1.4 logic.cpp,1.130,1.131 logic.h,1.86,1.87 queen.cpp,1.51,1.52 queen.h,1.17,1.18 sound.cpp,1.15,1.16 sound.h,1.7,1.8 talk.cpp,1.58,1.59 talk.h,1.23,1.24 walk.cpp,1.30,1.31 walk.h,1.15,1.16
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list