-#define COMPILE_DATE_STRING "2009-06-23 02:12"
+#define COMPILE_DATE_STRING "2009-06-23 23:34"
#include "ASM.h"
-static char *VB_Name = "modASM";
+// static char *VB_Name = "modASM";
+
// --- Option Explicit
// PseudoRegisters:
#include "BitMapObject.h"
-static void ConvertToVBPalette();
+// static void ConvertToVBPalette();
static long Get_ByteWidth();
static long Get_LineLength();
static void ReDimArrays();
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "BitMapObject";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "BitMapObject";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
// info von http://web.usxchange.net/elmo/bmp.htm
ReDimArrays();
}
+#if 0
+
void BitMapObject_CreateFromFile(char *Path)
{
long FNum;
void BitMapObject_SaveToFile(char *Path)
{
- long FNum;
+ FILE *FNum;
BMFH.bfOffBits = Len(BMFH) + Len(BMIH);
if (BMIH.biBitCount < 9)
BMIH.biSizeImage = Get_LineLength() * BMIH.biHeight;
BMFH.bfSize = BMFH.bfOffBits + BMIH.biSizeImage;
- FNum = FreeFile();
+ // FNum = FreeFile();
FNum = fopen(Path, "wb");
FILE_PUT(FNum, -1, &BMFH, sizeof(BMFH));
FILE_PUT(FNum, -1, &BMIH, sizeof(BMIH));
}
}
+#endif
+
static void ReDimArrays()
{
{
return ColorsUsed;
}
+#if 0
+
long BitMapObject_Get_ColorIndex(long X, long Y)
{
long ColorIndex;
{
case 1:
ColIndex = GetPaletteIndex(NewColor);
- ByteVal = ImageDataBytes[X / 8, nY];
+ ByteVal = ImageDataBytes[X / 8][nY];
BitPos = 7 - (X % 8);
NewX = (1 << BitPos);
ColIndex = ColIndex * NewX;
ByteVal = (ByteVal | NewX);
}
- ImageDataBytes[X / 8, nY] = ByteVal;
+ ImageDataBytes[X / 8][nY] = ByteVal;
break;
case 4:
ColIndex = GetPaletteIndex(NewColor);
- ByteVal = ImageDataBytes[X / 2, nY];
+ ByteVal = ImageDataBytes[X / 2][nY];
if ((X % 2) == 0)
{
ByteVal = (ByteVal & 0xF) + ColIndex * 0x10;
ByteVal = (ByteVal & 0xF0) + ColIndex;
}
- ImageDataBytes[X / 2, nY] = ByteVal;
+ ImageDataBytes[X / 2][nY] = ByteVal;
break;
case 8:
- ImageDataBytes[X, nY] = GetPaletteIndex(NewColor);
+ ImageDataBytes[X][nY] = GetPaletteIndex(NewColor);
break;
case 24:
NewX = 3 * X;
- ImageDataBytes[NewX, nY] = (NewColor & 0xFF0000) / 0x10000; // B
- ImageDataBytes[NewX + 1, nY] = (NewColor & 0xFF00) / 0x100; // G
- ImageDataBytes[NewX + 2, nY] = (NewColor & 0xFF); // R
+ ImageDataBytes[NewX][nY] = (NewColor & 0xFF0000) / 0x10000; // B
+ ImageDataBytes[NewX + 1][nY] = (NewColor & 0xFF00) / 0x100; // G
+ ImageDataBytes[NewX + 2][nY] = (NewColor & 0xFF); // R
break;
default:
return GetPaletteIndex;
}
+#endif
+
long BitMapObject_Get_Width()
{
long Width;
return Height;
}
+#if 0
+
BitMapObject BitMapObject_GetStretchCopy(float StretchVal)
{
BitMapObject GetStretchCopy;
{
for (iX = 0; iX <= nWidth; iX++)
{
- GetStretchCopy.Let_ColorIndex(iX, iY, ColorIndex(Int(iX / StretchVal), Int(iY / StretchVal)));
+ GetStretchCopy.Let_ColorIndex(iX, iY, ColorIndex((int)(iX / StretchVal), (int)(iY / StretchVal)));
}
}
return GetStretchCopy;
}
+
+#endif
#include "BugsTerminals.h"
-static char *VB_Name = "modBugTerminal";
+// static char *VB_Name = "modBugTerminal";
+
// --- Option Explicit
long GetTickCount();
{
int subAnimateBugs;
- int ax, bx, cx, dx, di;
- int ah, bh, ch, dh, al, bl, cl, dl;
+ // int ax, bx, cx, dx, di;
+ // int ah, bh, ch, dh, al, bl, cl, dl;
+ int cx;
+ int bl;
if (fiBug != LowByte(PlayField16[si]))
return subAnimateBugs;
{
int subAnimateTerminals;
- int bl, ax, al, X, Y;
+ // int bl, ax, al, X, Y;
+ int bl, al, X, Y;
if (LowByte(PlayField16[si]) != fiTerminal)
return subAnimateTerminals;
#include "Capture.h"
-static char *VB_Name = "CaptureModule";
+// static char *VB_Name = "CaptureModule";
+
// --------------------------------------------------------------------
// ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
//
// Fill Pic with necessary parts.
{
- pic.Size = Len(pic); // Length of structure.
+ pic.Size = sizeof(pic); // Length of structure.
pic.Type = vbPicTypeBitmap; // Type of Picture (bitmap).
pic.hBmp = hBmp; // Handle to bitmap.
pic.hPal = hPal; // Handle to palette (may be null).
}
// Print the picture using the PaintPicture method.
- Prn_PaintPicture(pic, 0, 0, PrnPicWidth, PrnPicHeight);
+#if 0
+ Prn.PaintPicture(pic, 0, 0, PrnPicWidth, PrnPicHeight);
+#endif
}
// --------------------------------------------------------------------
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "DDScrollBuffer";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "DDScrollBuffer";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
// needs reference to: DirectX7 for Visual Basic Type Library
if (IS_NOTHING(&PrimarySurface, sizeof(PrimarySurface)))
return;
- L = PrimarySurface_Blt(DR, Buffer, SR, DDBLT_WAIT);
+ L = PrimarySurface.Blt(DR, &Buffer, SR, DDBLT_WAIT);
if (L != DD_OK)
{
switch (L)
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "DDSpriteBuffer";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "DDSpriteBuffer";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
// --- Option Explicit
// needs reference to: DirectX7 for Visual Basic Type Library
CreateFromFile = True;
return CreateFromFile;
-CreateFromFileEH:
+ // CreateFromFileEH:
CreateFromFile = False;
return CreateFromFile;
CreateAtSize = True;
return CreateAtSize;
-CreateAtSizeEH:
+ // CreateAtSizeEH:
CreateAtSize = False;
return CreateAtSize;
SR.right = SR.left + mSpriteWidth;
SR.bottom = SR.top + mSpriteHeight;
}
- Tmp = mDest_Blt(DR, Buffer, SR, DDBLT_WAIT);
+ Tmp = mDest.Blt(DR, &Buffer, SR, DDBLT_WAIT);
}
void DDSpriteBuffer_BltEx(int pX, int pY, int SpritePos)
// End If
// End Function
+#if 0
+
static void Class_Initialize()
{
mDestXOff = 0;
mDestYOff = 0;
}
+
+#endif
#include "Demo.h"
-static char *VB_Name = "modDemo";
+// static char *VB_Name = "modDemo";
+
// --- Option Explicit
//
// Public Function subCloseDemoRecordingFile()
GetTotalFramesOfDemo = nFrames;
return GetTotalFramesOfDemo;
-GetTotalFramesOfDemoEH:
+ // GetTotalFramesOfDemoEH:
// ReportError "GetTotalFramesOfDemo()", "invalid data detected in file " & OrigPath
GetTotalFramesOfDemo = 0;
DemoAvailable = False;
#include "DemoBufferObject.h"
-static void Class_Terminate();
-static int RemoveLastDemoKey();
+// static void Class_Terminate();
+// static int RemoveLastDemoKey();
// --- VERSION 1.0 CLASS
// --- BEGIN
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "DemoBufferObject";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "DemoBufferObject";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
#define MaxPos ((long)1024)
int CheckSum;
long nSize;
+#if 0
+
static void Class_Initialize()
{
int lSize;
SET_TO_NOTHING(&SubBuffer, sizeof(SubBuffer));
}
+#endif
+
void DemoBufferObject_Reset()
{
nSize = 0;
Size = (nSize < 1 ? 0 : 0);
if (! IS_NOTHING(&SubBuffer, sizeof(SubBuffer)))
- Size = Size + SubBuffer_Size();
+ Size = Size + SubBuffer.Size;
return Size;
}
// End If
// End Property
-boolean DemoBufferObject_Serialize(int FNum)
+boolean DemoBufferObject_Serialize(FILE *FNum)
{
boolean Serialize;
Serialize = True;
if (! IS_NOTHING(&SubBuffer, sizeof(SubBuffer)))
- Serialize = SubBuffer_Serialize(FNum);
+ Serialize = SubBuffer.Serialize(FNum);
if (nSize == 0)
return Serialize;
// AddDemoKey LKey
return Serialize;
-SerializeEH:
+ // SerializeEH:
Serialize = False;
return Serialize;
SubBuffer = SBuf;
}
+#if 0
+
static int RemoveLastDemoKey()
{
static int RemoveLastDemoKey;
return RemoveLastDemoKey;
}
+
+#endif
extern long DemoBufferObject_Get_Size();
extern void DemoBufferObject_Let_FirstByte(byte NewVal);
extern void DemoBufferObject_Reset();
-extern boolean DemoBufferObject_Serialize(int FNum);
+extern boolean DemoBufferObject_Serialize(FILE *FNum);
extern void DemoBufferObject_SetSubBuffer(DemoBufferObject SBuf);
#endif /* DEMOBUFFEROBJECT_H */
#include "DirectDrawGlobals.h"
-static char *VB_Name = "DirectDrawGlobals";
+// static char *VB_Name = "DirectDrawGlobals";
+
// --- Option Explicit
DirectX7 DirectX;
#include "DirectXGlobals.h"
-static char *VB_Name = "DirectXGlobals";
+// static char *VB_Name = "DirectXGlobals";
+
// --- Option Explicit
DirectX7 DirectX;
#include "Display.h"
-static char *VB_Name = "modDisplay";
+// static char *VB_Name = "modDisplay";
+
// --- Option Explicit
int ScreenScrollXPos, ScreenScrollYPos;
static void CallAnimation(int si, byte bl);
static boolean IsToBeAnimated(int bl);
-static char *VB_Name = "modDoGameStuff";
+// static char *VB_Name = "modDoGameStuff";
+
// --- Option Explicit
int *AnimationPosTable;
#include "Electrons.h"
-static char *VB_Name = "modElectron";
+// static char *VB_Name = "modElectron";
+
// --- Option Explicit
// ==========================================================================
// SUBROUTINE
{
int subElectronTurnLeft;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
ax = (TimerVar & 3);
if (ax != 0)
{
int subElectronTurnRight;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
ax = (TimerVar & 3);
if (ax != 0)
{
int subElectronFromBelow;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0xF; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
int subElectronFromRight;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x17; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
int subElectronFromAbove;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x1F; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
int subElectronFromLeft;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x27; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
static char * GetErrLogPath();
static char * GetTraceLogPath();
-static char *VB_Name = "modErrorReporting";
+// static char *VB_Name = "modErrorReporting";
+
// --- Option Explicit
static char *GetErrLogPath()
void ReportError(char *Source, char *Message)
{
char *Path;
- int FNum;
+ FILE *FNum;
boolean bIsOpen;
Path = GetErrLogPath();
// --- On Error GoTo 0
-ReportErrorEH:
+ // ReportErrorEH:
if (bIsOpen)
fclose(FNum);
}
static int subExplodeInfotron(int tsi, int cx);
static int subExplodeZonk(int tsi, int cx);
-static char *VB_Name = "modExplosions";
+// static char *VB_Name = "modExplosions";
// --- Option Explicit
// ==========================================================================
{
int subAnimateExplosion;
- int ax, bx, bl, X, Y;
+ // int ax, bx, bl, X, Y;
+ int ax, bl, X, Y;
if (LowByte(PlayField16[si]) != fiExplosion)
return subAnimateExplosion;
void ExplodeFieldSP(int si)
{
- int ax, al, cx, dl, dh;
+ // int ax, al, cx, dl, dh;
+ int ax, cx, dl;
ax = LowByte(PlayField16[si]);
if (ax == fiHardWare)
LetExplodeFieldSP(si + FieldWidth, cx, dl);
LetExplodeFieldSP(si + FieldWidth + 1, cx, dl);
-loc_g_2C3B:
+ // loc_g_2C3B:
subSoundFXExplosion();
} // ExplodeFieldSP
int ax, si;
-locloop_g_2919:
+ // locloop_g_2919:
for (si = 0; si <= LevelMax; si++)
{
ax = ByteToInt(PlayField8[si]);
#include "FakeDeclares.h"
-static void subUpdateHallOfFame();
+// static void subUpdateHallOfFame();
+
+// static char *VB_Name = "FakeDeclares";
-static char *VB_Name = "FakeDeclares";
// --- Option Explicit
// --- Option Compare Binary
// boolean bModified;
boolean ModifiedFlag;
+#if 0
+
static void subUpdateHallOfFame()
{
}
+#endif
+
boolean Get_ModifiedFlag()
{
// boolean ModifiedFlag;
#include "FancyRestore.h"
-static char *VB_Name = "modFancy";
+// static char *VB_Name = "modFancy";
+
// --- Option Explicit
// ==========================================================================
#include "GeneralTricks.h"
-static char *VB_Name = "GeneralTricks_Module";
+// static char *VB_Name = "GeneralTricks_Module";
+
// --- Option Explicit
// --- Option Compare Text
if (i != 0)
{
LS = Left(TS, i - 1);
- RS = Right(TS, Len(TS) - i);
+ RS = Right(TS, strlen(TS) - i);
ValEx = Val(CAT(LS, ".", RS));
}
else
*VAR = *VAR - Delta;
}
+#if 0
+
char *MySplit(char *TS, char *Sep, long SCount)
{
char *MySplit;
char *RA;
T = TS;
- L = Len(TS);
- SL = Len(Sep);
+ L = strlen(TS);
+ SL = strlen(Sep);
J = SCount;
if (J < 1)
{
break;
q = q + 1;
+#if 0
+ /* !!! CHECK IF THIS IS REALLY NEEDED !!! */
RA[q] = Mid(T, i, k - i);
+#endif
}
i = k + SL;
return MySplit;
}
+#endif
+
void MyReplace(char *TS, char *Pat1, char *Pat2)
{
long k, SL1, SL2, TL;
- TL = Len(TS);
- SL1 = Len(Pat1);
- SL2 = Len(Pat2);
+ TL = strlen(TS);
+ SL1 = strlen(Pat1);
+ SL2 = strlen(Pat2);
k = InStr(1, TS, Pat1);
if (k == 0)
return;
static void ReadDemo();
void ReadLevel();
-static char *VB_Name = "modGlobals";
+// static char *VB_Name = "modGlobals";
+
// --- Option Explicit
// --- Option Compare Text
// --- Option Base 0
#include "Infotrons.h"
-static char *VB_Name = "modInfotron";
+// static char *VB_Name = "modInfotron";
+
// --- Option Explicit
// ==========================================================================
int tFld;
// PseudoRegisters:
- int ax, bx, cx, dx, di, X, Y;
- int ah, bh, ch, dh, al, bl, cl, dl;
+ // int ax, bx, cx, dx, di, X, Y;
+ // int ah, bh, ch, dh, al, bl, cl, dl;
+ int ax, bx, dx, X, Y;
+ int al, bl;
tFld = PlayField16[si];
if ((tFld & 0xFF) != fiInfotron)
#include "InitGameConditions.h"
-static char *VB_Name = "modInitGameConditions";
+// static char *VB_Name = "modInitGameConditions";
+
// --- Option Explicit
// ==========================================================================
{
int subConvertToEasySymbols;
- int ax, bx, cx, dx, di, X, Y, i;
- int ah, bh, ch, dh, al, bl, cl, dl, ZF;
+ // int ax, bx, cx, dx, di, X, Y, i;
+ // int ah, bh, ch, dh, al, bl, cl, dl, ZF;
+ int ax, bx, cx, dx, i;
+ int al;
bx = 0;
dx = 0;
#include "Input.h"
-static char *VB_Name = "modInput";
+// static char *VB_Name = "modInput";
+
// --- Option Explicit
boolean KeyState[255 + 1];
// Call DKeyboard.Unacquire
return subProcessKeyboardInput;
-NoKeyboardAccessEH:
+ // NoKeyboardAccessEH:
Debug.Print("! Keyboard access");
return subProcessKeyboardInput;
// --- End
// --- End
-static char *VB_Name = "LevelSetPreviewForm";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = False;
-static boolean VB_PredeclaredId = True;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "LevelSetPreviewForm";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = False;
+// static boolean VB_PredeclaredId = True;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
// --- End
// --- End
-static char *VB_Name = "MainForm";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = False;
-static boolean VB_PredeclaredId = True;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "MainForm";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = False;
+// static boolean VB_PredeclaredId = True;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
// --- Option Compare Text
const char *AppTitle = "MegaPlex";
+#if 0
+
static char *GetSpeedDescriptionFPS(currency FrameDelayUS)
{
static char *GetSpeedDescriptionFPS;
return GetSpeedIndex;
}
-#if 0
-
static long Get_LastOpenFilter()
{
static long LastOpenFilter;
// lblFrameCount = 0
}
+#if 0
+
static char *GetValidTempPath()
{
static char *GetValidTempPath;
return GetValidTempPath;
}
-#if 0
-
static char *GetMyTempFileName()
{
static char *GetMyTempFileName;
picPane_KeyUp(KeyCode, Shift);
}
-#endif
-
static void Form_Load()
{
#if 0
#endif
}
-#if 0
-
static void FillLevelList(char *Path, int LevelIndex)
{
long FNum, LevLen, i, iMax;
}
}
+#if 0
+
static void RestoreFrame()
{
int i, LX, tY, RX, BY;
}
}
-#if 0
-
static void Form_Unload(int Cancel)
{
EndFlag = True;
extern void menEdit_Click();
extern void menPlaySpeed_Click(int Index);
extern void menStop_Click();
+extern void menPlay_Click();
#endif /* MAINFORM_H */
#include "MainGameLoop.h"
-static char *VB_Name = "modMainGameLoop";
+// static char *VB_Name = "modMainGameLoop";
+
// --- Option Explicit
int GameLoopRunning;
{
int subMainGameLoop;
- int al, bx;
+ // int al, bx;
+ int bx;
TickCountObject Clock;
currency LastFrame;
// Call subConvertToEasySymbols ' Convert to easy symbols
// End If
-loc_g_186F:
+ // loc_g_186F:
+
subProcessKeyboardInput(); // Check keyboard, act on keys
// 'HACK:
// TimerVar = TimerVar + 1
#include "Marker.h"
-static boolean IsPort(long i);
+// static boolean IsPort(long i);
static void LimitXY(int *X, int *Y);
static void SortData();
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "MarkerObject";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "MarkerObject";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
long mIndex1, mIndex2;
static void SortData()
{
- int Tmp;
+ // int Tmp;
XMin = (X2 < X1 ? X2 : X2);
YMin = (Y2 < Y1 ? Y2 : Y2);
}
+#if 0
+
void Marker_ShowMarker(boolean ShowFlag)
{
mVisible = ShowFlag;
SelectionData = REDIM_1D(sizeof(byte), 0, 1 - 1);
return;
-CopyEH:
+ // CopyEH:
Beep();
}
Tmp = FieldWidth * (YMin + Y) + XMin + X;
// --- On Error GoTo PasteEH
- DisPlayField[Tmp] = SelectionData[X, Y];
- PlayField16[Tmp] = UnEdSprite(SelectionData[X, Y]);
+ DisPlayField[Tmp] = SelectionData[X][Y];
+ PlayField16[Tmp] = UnEdSprite(SelectionData[X][Y]);
// --- On Error GoTo 0
}
}
Let_ModifiedFlag(True);
-PasteEH:
+ // PasteEH:
Beep();
}
{
mVisible = False;
}
+
+#endif
static void subEatRedDisk(int si);
static boolean subMoveKillsMurphy(int si, int ax, int bl);
-static char *VB_Name = "modMurphy";
+// static char *VB_Name = "modMurphy";
+
// --- Option Explicit
#define LocalStretch (1)
{
int subAnimateMurphy;
- int ax, al, ah, bx, bl, i, X, Y;
- int tX, tY, tDeltaX, tDeltaY, tPos, Tmp;
+ // int ax, al, ah, bx, bl, i, X, Y;
+ // int tX, tY, tDeltaX, tDeltaY, tPos, Tmp;
+ int ax, al, bx, bl, i, X, Y;
+ int tDeltaX, tDeltaY, tPos, Tmp;
// Variables that hold information about the animation sequence
int *dx; // an array of image positions in moving.mpx, finalized with -1
#include "OrangeDisk.h"
-static char *VB_Name = "modOrangeDisk";
+// static char *VB_Name = "modOrangeDisk";
+
// --- Option Explicit
// ==========================================================================
// SUBROUTINE
#include "PathTools.h"
-static char *VB_Name = "PathTools_Module";
+// static char *VB_Name = "PathTools_Module";
+
// --- Option Explicit
// --- Option Compare Text
char *StripExtensionlessFileName;
char *T, *T2;
- long i, iSlash;
+ // long i, iSlash;
T = StripFileName(Path);
T2 = StripExtension(Path);
{
boolean FilesEqual;
- int FNum1, FNum2;
+ FILE *FNum1, *FNum2;
long nSize, i;
boolean b1Open, b2Open;
byte *bin1, *bin2;
FilesEqual = True;
return FilesEqual;
+#if 0
FilesEqualEH:
if (b1Open)
- Close(FNum1);
+ fclose(FNum1);
if (b2Open)
- Close(FNum2);
+ fclose(FNum2);
return FilesEqual;
+#endif
+
}
// --- MTSTransactionMode = 0 'NotAnMTSObject // NotAnMTSObject
// --- END
-static char *VB_Name = "SettingsObject";
-static boolean VB_GlobalNameSpace = False;
-static boolean VB_Creatable = True;
-static boolean VB_PredeclaredId = False;
-static boolean VB_Exposed = False;
+// static char *VB_Name = "SettingsObject";
+// static boolean VB_GlobalNameSpace = False;
+// static boolean VB_Creatable = True;
+// static boolean VB_PredeclaredId = False;
+// static boolean VB_Exposed = False;
+
// --- Option Explicit
// --- Option Compare Text
+#if 0
+
const char *AppName = "MegaPlex";
const char *Config = "Config";
return Read;
}
+#endif
static int subSnikSnakTurnLeft(int si, int bx);
static int subSnikSnakTurnRight(int si, int bx);
-static char *VB_Name = "modSnikSnak";
+// static char *VB_Name = "modSnikSnak";
+
// --- Option Explicit
// ==========================================================================
// SUBROUTINE
{
static int subSnikSnakTurnLeft;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, ah, bl, X, Y;
ax = (TimerVar & 3);
if (ax != 0)
{
static int subSnikSnakTurnRight;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, ah, bl, X, Y;
ax = (TimerVar & 3);
if (ax != 0)
{
static int subSnikSnakFromBelow;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0xF; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
static int subSnikSnakFromRight;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x17; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
static int subSnikSnakFromAbove;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x1F; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
{
static int subSnikSnakFromLeft;
- int ax, ah, bl, dx, X, Y;
+ // int ax, ah, bl, dx, X, Y;
+ int ax, bl, X, Y;
bx = bx - 0x27; // get and increment sequence#
// +++++++++++++++++++++++++++++++++++++++++++++++++++++
#include "Sound.h"
-static char *VB_Name = "modSound";
+// static char *VB_Name = "modSound";
+
// --- Option Explicit
int MusicOnFlag;
// static boolean VB_Exposed = False;
// --- Option Explicit
-#define LongMin (-(double)2147483648) // the "#" sign is a bug of the VB environment AutoFormat function but causes no real problems; don't worry 'bout it!
-#define LongMax (2147483647)
+#define LongMin (-(double)2147483648UL) // the "#" sign is a bug of the VB environment AutoFormat function but causes no real problems; don't worry 'bout it!
+#define LongMax (2147483647UL)
long GetTickCount();
long QueryPerformanceCounter(currency lpPerformanceCount);
{
currency Start;
- Start = TickNow();
+ Start = TickCountObject_Get_TickNow();
DelayLoopActive = True;
do
{
if (DoEventsFlag)
DoEvents();
- if (MSInterval <= TickDiffMS(Start) && ! MPause)
+ if (MSInterval <= TickCountObject_TickDiffMS(Start) && ! MPause)
break;
}
while (1);
TickDiffS = NewTick - TickStart;
}
- TickDiffS = Int(TickDiffS / 1000);
+ TickDiffS = (int)(TickDiffS / 1000);
}
return TickDiffS;
/* helper functions for constructs not supported by C */
void *REDIM_1D(int a, int b, int c)
{
+ return 0;
}
void *REDIM_2D(int a, int b, int c, int d, int e)
{
+ return 0;
}
boolean IS_NOTHING(void *a, int b)
{
+ return 0;
}
void SET_TO_NOTHING(void *a, int b)
{
+ return;
}
void MESSAGE_BOX(char *a)
{
+ return;
}
char *CAT(const char *a, ...)
{
+ return 0;
}
char *GET_PATH(char *a, ...)
{
+ return 0;
}
char *INT_TO_STR(int a)
{
+ return 0;
}
boolean STRING_IS_LIKE(char *a, char *b)
{
+ return 0;
}
int FILE_GET(FILE *a, int b, void *c, int d)
{
+ return 0;
}
int FILE_PUT(FILE *a, int b, void *c, int d)
{
+ return 0;
}
/* this is just a workaround -- handle array definitions later */
void *Array(int a, ...)
{
+ return 0;
}
/* VB functions that do not return "int" (and would cause compiler errors) */
double Val(char *a)
{
+ return 0;
}
char *Left(char *a, int b)
{
+ return 0;
}
char *left(char *a, int b)
{
+ return 0;
}
char *Right(char *a, int b)
{
+ return 0;
}
char *right(char *a, int b)
{
+ return 0;
}
char *StrReverse(char *a)
{
+ return 0;
}
int InStr(int a, char *b, char *c)
{
+ return 0;
}
char *Dir(char *a)
{
+ return 0;
}
char *Dir_Without_Args()
{
+ return 0;
}
void Kill(char *a)
{
+ return;
}
char *Chr(int a)
{
+ return 0;
}
char *String(int a, char *b)
{
+ return 0;
}
void MkDir(char *a)
{
+ return;
}
char *Hex(int a)
{
+ return 0;
}
int FileLen(char *a)
{
+ return 0;
}
long GetTickCount()
{
+ return 0;
}
int GetAttr(char *a)
{
+ return 0;
}
void DoEvents()
{
+ return;
}
void SaveSetting(const char * a, const char *b, char *c, int d)
{
+ return;
}
long GetTempPath(long a, char *b)
{
+ return 0;
}
void (*GetSurfaceDesc)(DDSURFACEDESC2);
void (*SetClipper)(DirectDrawClipper);
// long (*Blt)(RECT, DirectDrawSurface7, RECT, int);
+ long (*Blt)(RECT, void *, RECT, int);
void (*BltColorFill)(RECT, int);
} DirectDrawSurface7;