⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 game.h

📁 LBreakout a breakout-style arcade game for Linux Requirements: X11, SDL[1.0 or better] Inst
💻 H
字号:
/***************************************************************************                          game.h  -  description                             -------------------    begin                : Tue Feb 29 2000    copyright            : (C) 2000 by Michael Speck    email                :  ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef GAME_H#define GAME_H/**  *@author Michael Speck  */#include "sdl.h"#include "sndsrv.h"//action types#define AT_NONE		1000#define AT_QUIT		1001#define AT_HISCORE	1002#define AT_NEWGAME	1003class MenuManager;class BreakOut;class Menu;class MenuItem;class Game{public:     Game();    ~Game();    void Run();private:    SDL_Surface *title;    SDL_Surface *logo;    int         logo_x;    int         logo_y;    SFnt        *f_menu_w;    SFnt        *f_menu_b;    SFnt        *f_hiscore;    SFnt        *f_enlgt_hiscore;    SFnt        *f_copy;    MenuManager *mm;    char        val_ctrl_keys[SDLK_LAST];    BreakOut    *breakout;    MenuItem    *level_sw;    MenuItem    *level_menu;#ifdef SOUND    Wave        *snd_menu;#endifprotected:    void ShowHiScore(int r = -1);    void CheckLevelFile();};#endif

⌨️ 快捷键说明

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