[Scummvm-cvs-logs] SF.net SVN: scummvm: [22116] scummvm/trunk/engines/scumm
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Sun Apr 23 12:43:01 CEST 2006
Revision: 22116
Author: fingolfin
Date: 2006-04-23 12:41:54 -0700 (Sun, 23 Apr 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22116&view=rev
Log Message:
-----------
Moved _heTimers to ScummEngine_v60he
Modified Paths:
--------------
scummvm/trunk/engines/scumm/he/intern_he.h
scummvm/trunk/engines/scumm/he/sound_he.cpp
scummvm/trunk/engines/scumm/he/sound_he.h
scummvm/trunk/engines/scumm/scumm.cpp
scummvm/trunk/engines/scumm/scumm.h
Modified: scummvm/trunk/engines/scumm/he/intern_he.h
===================================================================
--- scummvm/trunk/engines/scumm/he/intern_he.h 2006-04-23 18:52:39 UTC (rev 22115)
+++ scummvm/trunk/engines/scumm/he/intern_he.h 2006-04-23 19:41:54 UTC (rev 22116)
@@ -48,10 +48,15 @@
const OpcodeEntryv60he *_opcodesv60he;
+public:
Common::File _hFileTable[17];
+ int _heTimers[16];
+ int getHETimer(int timer);
+ void setHETimer(int timer);
+
public:
- ScummEngine_v60he(OSystem *syst, const DetectorResult &dr) : ScummEngine_v6(syst, dr) {}
+ ScummEngine_v60he(OSystem *syst, const DetectorResult &dr);
virtual void scummInit();
Modified: scummvm/trunk/engines/scumm/he/sound_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/sound_he.cpp 2006-04-23 18:52:39 UTC (rev 22115)
+++ scummvm/trunk/engines/scumm/he/sound_he.cpp 2006-04-23 19:41:54 UTC (rev 22116)
@@ -27,6 +27,7 @@
#include "scumm/imuse/imuse.h"
#include "scumm/scumm.h"
#include "scumm/he/sound_he.h"
+#include "scumm/he/intern_he.h"
#include "scumm/util.h"
#include "common/config-manager.h"
@@ -48,6 +49,7 @@
SoundHE::SoundHE(ScummEngine *parent)
:
Sound(parent),
+ _vm((ScummEngine_v60he *)parent),
_heMusic(0),
_heMusicTracks(0) {
Modified: scummvm/trunk/engines/scumm/he/sound_he.h
===================================================================
--- scummvm/trunk/engines/scumm/he/sound_he.h 2006-04-23 18:52:39 UTC (rev 22115)
+++ scummvm/trunk/engines/scumm/he/sound_he.h 2006-04-23 19:41:54 UTC (rev 22116)
@@ -27,9 +27,13 @@
namespace Scumm {
+class ScummEngine_v60he;
+
class SoundHE : public Sound {
protected:
- struct HEMusic{
+ ScummEngine_v60he *_vm;
+
+ struct HEMusic {
int32 id;
int32 offset;
int32 size;
Modified: scummvm/trunk/engines/scumm/scumm.cpp
===================================================================
--- scummvm/trunk/engines/scumm/scumm.cpp 2006-04-23 18:52:39 UTC (rev 22115)
+++ scummvm/trunk/engines/scumm/scumm.cpp 2006-04-23 19:41:54 UTC (rev 22116)
@@ -428,7 +428,6 @@
_actorClipOverride.right = 640;
_skipDrawObject = 0;
- memset(_heTimers, 0, sizeof(_heTimers));
memset(_akosQueue, 0, sizeof(_akosQueue));
_akosQueuePos = 0;
@@ -798,6 +797,11 @@
VAR_TIMEDATE_SECOND = 0xFF;
}
+ScummEngine_v60he::ScummEngine_v60he(OSystem *syst, const DetectorResult &dr)
+ : ScummEngine_v6(syst, dr) {
+ memset(_heTimers, 0, sizeof(_heTimers));
+}
+
#ifndef DISABLE_HE
ScummEngine_v70he::ScummEngine_v70he(OSystem *syst, const DetectorResult &dr)
: ScummEngine_v60he(syst, dr) {
@@ -1894,13 +1898,13 @@
#pragma mark --- SCUMM ---
#pragma mark -
-int ScummEngine::getHETimer(int timer) {
+int ScummEngine_v60he::getHETimer(int timer) {
checkRange(15, 1, timer, "getHETimer: Timer out of range(%d)");
int time = _system->getMillis() - _heTimers[timer];
return time;
}
-void ScummEngine::setHETimer(int timer) {
+void ScummEngine_v60he::setHETimer(int timer) {
checkRange(15, 1, timer, "setHETimer: Timer out of range(%d)");
_heTimers[timer] = _system->getMillis();
}
Modified: scummvm/trunk/engines/scumm/scumm.h
===================================================================
--- scummvm/trunk/engines/scumm/scumm.h 2006-04-23 18:52:39 UTC (rev 22115)
+++ scummvm/trunk/engines/scumm/scumm.h 2006-04-23 19:41:54 UTC (rev 22116)
@@ -1127,10 +1127,6 @@
byte _HEV7ActorPalette[256];
uint8 *_hePalettes;
- int _heTimers[16];
- int getHETimer(int timer);
- void setHETimer(int timer);
-
protected:
int _shadowPaletteSize;
byte _currentPalette[3 * 256];
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list