mirror of
https://github.com/softdorothy/Pararena2.git
synced 2024-06-02 00:41:46 +00:00
1 line
12 KiB
C
1 line
12 KiB
C
|
/*============================================================*/
/*============================================================*/
/*== ==*/
/*== Main Body ==*/
/*== ==*/
/*============================================================*/
/*============================================================*/
/* */
/* Pararena 2.06 by john calhoun */
/* <09> 1992 Casady & Greene, Inc. */
/* */
/*======================================================== Includes */
#include "Globals.h"
#include "UnivUtilities.h"
#include "AnimCursor.h"
#include "Prefs.h"
#include "Main.h"
#include "Idle.h"
#include "IdleRoutines.h"
#include "Render.h"
#include "PlayCore.h"
#include "Initialize.h"
#include "AppleTalkDDP.h"
#include "SoundUtils.h"
#include "MainWindow.h"
#include <Sound.h>
/*======================================================== Globals */
ballType theBall;
playerType thePlayer;
playerType theOpponent;
doorType theDoor;
digiDispType scoreDisplays[2];
cursorType boardCursor;
replayType *replayData;
masterSendType masterMessage;
slaveSendType slaveMessage;
statType theStats[10];
string31 theNames[10];
macEnvironment thisMac;
soundQueue crowdQueue, incidentalQueue;
WindowPtr mainWndo;
KeyMap theKeyMap;
RGBColor RGBBlackColor, RGBWhiteColor;
RGBColor starColors[3];
RgnHandle screenRgn;
EventRecord theEvent;
Cursor handCursor;
GrafPtr offBackPtr, offPartsPtr, offWorkPtr, offMaskPtr;
BitMap offBackBits, offPartsBits, offWorkBits, offMaskMap;
CGrafPort offCBackPort, offCPartsPort, offCWorkPort, offCMaskPort;
CGrafPtr offCBackPtr, offCPartsPtr, offCWorkPtr, offCMaskPtr;
Ptr offBackPix, offPartsPix, offWorkPix, offMaskPix;
Str255 courseFName, gameFName;
string31 mostTitlesName, mostPointsName;
string31 mostFoulsName, mostCritsName;
Rect offBackRect, offPartsRect, offWorkRect, offMaskRect;
Rect screenRect, dragRect, nullRect, mouseFrame;
Rect replayRect, cameraRect, colonDest, leftTimingDest, rightTimingDest;
Rect leftArrowSrc, rightArrowSrc, leftArrowDest, rightArrowDest;
Rect leftArrowStorage, rightArrowStorage, timingSource;
Rect playerSrcRects[9][3], fadeMaskRects[9][3], opponentSrcRects[9][3];
Rect colonSrc[2];
Point starList[kNumberOfStars];
long screenBase, mostTitlesDate, mostPointsDate, speedFlag, theirSpeed;
long mostFoulsDate, mostCritsDate, oldDistSquared, tempLong;
long insetBytes, replaySrc, replayDest, lifeTime, thisTime, encryptedNumber;
long ballSrcAddr, ballMaskAddr;
long screenRowAddrs[480], workRowOffsets[480];
long playerSrcAddrs[9][3], fadeMaskAddrs[9][3], opponentSrcAddrs[9][3];
long maskAddrs[9][3];
long timeElapsed, baseTime, wasTime, timePaused, replayFlag;
short frameCounter, newFrameCount, lastFrameCount;
short mostTitles, mostPoints, mostFouls, mostCrits, isLeague;
short screenRowBytes, workRowBytes, backRowBytes, partsRowBytes;
short maskCRowBytes, maskRowBytes, displayMode, screenWide, screenHigh;
short primaryMode, arenaSize, isDepth, whichGame, loopsBallHeld;
short displayHCenter, displayVCenter, playerFouls, opponentFouls;
short playerTotalFouls, opponentTotalFouls, playerTotalGoals, opponentTotalGoals;
short playerTotalCrits, opponentTotalCrits, lastSoundPriority, spottedPoints;
short masterSendSize, slaveSendSize, loopDelay, soundFileRefNum;
short droppedPackets, sentPackets, wasSoundVolume, wasLastSound;
short playerScore, opponentScore, whosGotBall, maxBoardForce;
short whichHumanNumber, leftPlayerNumber, rightPlayerNumber, spotPoints;
short screenHCenter, screenVCenter, soundVolume, lengthOfApplause, lengthOfMob;
short leftGoalLeague, rightGoalLeague, theirLeague, system7HelpItem;
short horizontal, vertical;
short vertTable[41][81];
short *littleForceTable, *juniorForceTable, *varsityForceTable;
short *minorForceTable, *proForceTable;
short fadeMaskSequence[69];
short spacialToDirection[9];
short boardForceTable[9][2];
short teaksThreshholds[10];
short antiFacing[9];
short antiWhosBall[4];
short soundPriorities[kMaxNumberOfSo
|