proto.h

来自「Space Invaders game」· C头文件 代码 · 共 262 行

H
262
字号
//*********************************************************************
// function prototypes
//*********************************************************************

int PASCAL WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int cmdShow);


void InitInvaders(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpszCmdLine,
int cmdShow);


void InitInvadersFirst(
HINSTANCE hInstance);


void InitInvadersEvery(
HINSTANCE hInstance,
int cmdShow);


void CloseInvaders(
void);


BOOL CALLBACK About(
HWND hDlg,
UINT message,
WPARAM wParam,
LPARAM lParam);


BOOL CALLBACK VaryVariablesDlgProc(
HWND hDlg,
UINT iMessage,
WPARAM wParam,
LPARAM lParam);


LRESULT CALLBACK  InvadersWndProc(
HWND hWnd,
UINT message,
WPARAM wParam,
LPARAM lParam);


void PaintInvaders(
RECT *VRect);


void PaintObject(
int x,
int y,
unsigned char *object);


void InitGame(void);


void InitFrame(void);


void ClearScrn(void);


void DelayStartGame(void);


void CALLBACK StartGameProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveGunProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveBulletProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FlatBulletProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveGremlinProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK ExplosionProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK LaunchSpaceShipProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveSpaceShipProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK LaunchBombProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK MoveAllBombsProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


GREMLINPTR GetLeftEndGremlin(void);


GREMLINPTR GetRightEndGremlin(void);


void LaunchBombFromGremlin(
GREMLINPTR gp);


void RemoveBomb(
BOMBPTR bp,
BOMBPTR bpPrev);



void BombHit(
int x,
int y);


void CALLBACK RefreshTextProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FrameEndOneProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FrameEndTwoProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK GameEndOneProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK GameEndTwoProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK FlashProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void CALLBACK TimerFrameTickProc(
HWND hWnd,
UINT message,
UINT wParam,
DWORD lParam);


void MoveGremlinRight(
GREMLINPTR Grem);


void MoveGremlinDownLeft(
GREMLINPTR Grem);


void MoveGremlinLeft(
GREMLINPTR Grem);


void MoveGremlinDownRight(
GREMLINPTR Grem);


void AllGremlinsKilled(void);


void GunHit(void);


void Invaded(void);


void PlayWAV(
unsigned char SndCode);


void BulletHit(void);


void KillGameTimers(void);


void SetGameTimers(void);


void SetGameText(void);


void InitGremlins(void);


void InitBombs(void);


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?