added #include "actor.h", some minor tweaks

svn-id: r4332
This commit is contained in:
Max Horn 2002-05-14 23:32:34 +00:00
parent 659bc0e691
commit b529d80ed7
14 changed files with 17 additions and 9 deletions

View file

@ -21,6 +21,7 @@
*/ */
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
bool Scumm::akos_hasManyDirections(Actor * a) bool Scumm::akos_hasManyDirections(Actor * a)
{ {

View file

@ -22,7 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "math.h" #include "actor.h"
byte Scumm::getMaskFromBox(int box) byte Scumm::getMaskFromBox(int box)
{ {

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
const byte revBitMask[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 }; const byte revBitMask[8] = { 0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01 };

View file

@ -23,11 +23,9 @@
* Readline and command completion support by Tom Dunstan <tommyd@senet.com.au> * Readline and command completion support by Tom Dunstan <tommyd@senet.com.au>
*/ */
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
#ifdef HAVE_READLINE #ifdef HAVE_READLINE
#include "debugrl.h" #include "debugrl.h"

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "gui.h" #include "gui.h"
#include "actor.h"
void Scumm::getGraphicsPerformance() void Scumm::getGraphicsPerformance()
{ {

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
bool Scumm::getClass(int obj, int cls) bool Scumm::getClass(int obj, int cls)
{ {

View file

@ -1235,11 +1235,11 @@ void Scumm::allocateArrays()
bool Scumm::isGlobInMemory(int type, int index) bool Scumm::isGlobInMemory(int type, int idx)
{ {
validateResource("isGlobInMemory",type,index); validateResource("isGlobInMemory",type,idx);
return res.address[type][index] != NULL; return res.address[type][idx] != NULL;
} }

View file

@ -24,6 +24,7 @@
#include "scumm.h" #include "scumm.h"
#include "sound/mididrv.h" #include "sound/mididrv.h"
#include "sound/imuse.h" #include "sound/imuse.h"
#include "actor.h"
struct SaveGameHeader { struct SaveGameHeader {
uint32 type; uint32 type;

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
/* Start executing script 'script' with parameters 'a' and 'b' */ /* Start executing script 'script' with parameters 'a' and 'b' */
void Scumm::runScript(int script, int a, int b, int16 * lvarptr) void Scumm::runScript(int script, int a, int b, int16 * lvarptr)

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
void Scumm::setupOpcodes() void Scumm::setupOpcodes()
{ {

View file

@ -23,6 +23,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
#include "sound/mididrv.h" #include "sound/mididrv.h"
#include "sound/imuse.h" #include "sound/imuse.h"

View file

@ -21,6 +21,8 @@
#ifndef __SCUMMSYS_H_ #ifndef __SCUMMSYS_H_
#define __SCUMMSYS_H_ #define __SCUMMSYS_H_
#include <stdlib.h>
#if defined(HAVE_NO_BOOL) #if defined(HAVE_NO_BOOL)
typedef int bool; typedef int bool;
const bool true(1), false(0); const bool true(1), false(0);
@ -132,7 +134,6 @@ typedef signed long int32;
#endif #endif
#elif defined(macintosh) #elif defined(macintosh)
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include "macos.h" #include "macos.h"

View file

@ -24,7 +24,7 @@
#include "scumm.h" #include "scumm.h"
#include "sound/mididrv.h" #include "sound/mididrv.h"
#include "sound/imuse.h" #include "sound/imuse.h"
#include <sys/stat.h> #include "actor.h"
#ifdef _WIN32_WCE #ifdef _WIN32_WCE
extern void *bsearch(const void *, const void *, size_t, extern void *bsearch(const void *, const void *, size_t,

View file

@ -22,6 +22,7 @@
#include "stdafx.h" #include "stdafx.h"
#include "scumm.h" #include "scumm.h"
#include "actor.h"
int CharsetRenderer::getStringWidth(int arg, byte *text, int pos) int CharsetRenderer::getStringWidth(int arg, byte *text, int pos)
{ {