Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CGame.h

Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004 Parallel Realities 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public License 00006 as published by the Free Software Foundation; either version 2 00007 of the License, or (at your option) any later version. 00008 00009 This program is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00012 00013 See the GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software 00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00018 00019 */ 00020 00021 class Game { 00022 00023 private: 00024 00025 int objectiveCheckPointX, objectiveCheckPointY; 00026 00027 public: 00028 00029 char mapName[50]; 00030 char stageName[50]; 00031 00032 int gore, skill, soundVol, musicVol, output, brightness, autoSaveSlot, autoSave; 00033 00034 int score, stagesCleared; 00035 int totalHours, totalMinutes, totalSeconds; 00036 int currentMissionHours, currentMissionMinutes, currentMissionSeconds; 00037 int totalEnemiesDefeated, totalItemsCollected, totalBonusesCollected; 00038 int currentMissionEnemiesDefeated, currentMissionItemsCollected; 00039 int totalObjectivesCompleted, totalMIAsRescued; 00040 00041 unsigned char currentWeapon; 00042 unsigned int bulletsFired[5], bulletsHit[5]; 00043 00044 int checkPointX, checkPointY; 00045 int teleportPointX, teleportPointY; 00046 00047 bool hasAquaLung, hasJetPack, continueFromCheckPoint; 00048 00049 int lastComboTime; 00050 unsigned char currentComboHits, maxComboHits; 00051 00052 unsigned int missionOverReason; 00053 unsigned long missionOver; 00054 00055 unsigned int continuesUsed; 00056 unsigned int levelsStarted; 00057 unsigned int escapes; 00058 00059 int canContinue; 00060 00061 Game(); 00062 void clear(); 00063 void destroy(); 00064 void incrementMissionTime(); 00065 void setCheckPoint(float x, float y); 00066 void getCheckPoint(float *x, float *y); 00067 void setObjectiveCheckPoint(); 00068 void useObjectiveCheckPoint(); 00069 void doCombo(); 00070 void incBulletsFired(); 00071 void incBulletsHit(); 00072 int getWeaponAccuracy(int weapon); 00073 int getTotalBulletsFired(); 00074 int getTotalAccuracy(); 00075 int getMostUsedWeapon(); 00076 void totalUpStats(); 00077 void setStageName(char *name); 00078 void setMapName(char *name); 00079 void setMissionOver(int reason); 00080 void resetMissionOver(); 00081 00082 };

Generated on Thu Dec 2 20:26:02 2004 for Blob Wars : Metal Blob Solid by doxygen 1.3.7