#include <iostream>
#include <guichan.hpp>
#include <guichan/sdl.hpp>
#include <guichan/opengl.hpp>
#include <guichan/opengl/openglsdlimageloader.hpp>
#include "SDL.h"
#include "SDL_main.h"
#include "bass.h"
#include "SDL_ttf.h"
#include <gl\gl.h>
#include <gl\glu.h>
#include <glut.h>
#include <math.h>
#include <fstream>
#include "CAnimation.h"
#include "Vector.h"
#include "PSystem.h"
#include "TileStorm.h"
#include "TileAnim.h"
#include "Shockwave.h"
#include "MiniShock.h"
#include "structs.h"
#include "GameState.h"
#include "main.h"
#include "display.h"
#include "sound.h"
#include "credits.h"
#include "menu.h"
#include "game.h"
#include "physics.h"
#include "collision.h"
Include dependency graph for stdafx.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
| #define ANIM_CYCLE_CYCLE 1 |
| #define ANIM_CYCLE_ONESHOT 0 |
| #define ANIMID_BROWN_HOP_IN 7 |
| #define ANIMID_BROWNTANKEXPLODE 3 |
| #define ANIMID_CRATECRUSH 4 |
Definition at line 221 of file stdafx.h.
Referenced by CObject::Draw(), InitTextures(), and CWorld::LoadLevel().
| #define ANIMID_EXPLOSION 5 |
| #define ANIMID_GREEN_HOP_IN 6 |
| #define ANIMID_GREENTANKEXPLODE 2 |
| #define ANIMID_NULL 0 |
Definition at line 217 of file stdafx.h.
Referenced by CObject::CObject(), and TileAnim::TileAnim().
| #define ANIMID_TANKROLL 1 |
| #define CELL_SIZE PLAYFIELD_SIZE / MAP_SIZE |
Definition at line 68 of file stdafx.h.
Referenced by DrawTiles(), CWorld::LoadLevel(), and ProcessTileCollisions().
| #define DAS_ERROR -1 |
Definition at line 33 of file stdafx.h.
Referenced by Credits(), creditsReadPage(), getInteraction(), HighScore(), InitCollision(), LoadHighScores(), loadInteractionMatrix(), CWorld::LoadLevel(), CWorld::RemoveEffect(), CWorld::RemoveObject(), and SaveHighScores().
| #define DEFAULT_ANGLE 0 |
| #define DEFAULT_BB_BOTTOM -0.9 |
| #define DEFAULT_BB_LEFT -0.9 |
| #define DEFAULT_BB_RIGHT 0.9 |
| #define DEFAULT_BB_TOP 0.9 |
| #define DEFAULT_BGM_VOLUME 100 |
| #define DEFAULT_BS_AMMO 10 |
| #define DEFAULT_DAMAGE 1 |
| #define DEFAULT_DRAW_BOTTOM -1 |
| #define DEFAULT_DRAW_LEFT -1 |
| #define DEFAULT_DRAW_RIGHT 1 |
| #define DEFAULT_DRAW_TOP 1 |
| #define DEFAULT_HEALTH 1 |
| #define DEFAULT_HS_AMMO 5 |
| #define DEFAULT_LINGER_TIME 2000 |
| #define DEFAULT_LIVES 1 |
| #define DEFAULT_LM_AMMO 3 |
| #define DEFAULT_PS_AMMO -1 |
| #define DEFAULT_RENDERSTYLE RENDERSTYLE_FLAT |
| #define DEFAULT_SB_AMMO 5 |
| #define DEFAULT_SFX_VOLUME 40 |
| #define DEFAULT_SUB_ANGLE 0 |
| #define DRAW_BOUNDING_BOXES 0 |
| #define EFFECTID_MINISHOCK 5 |
Definition at line 252 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), GameLogicFire(), PhysicsReflect(), RemoveDeadObjects(), and CEffect::Step().
| #define EFFECTID_NULL 0 |
Definition at line 247 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), and CEffect::Step().
| #define EFFECTID_PSYSTEM 1 |
Definition at line 248 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), GameLogicFire(), InitGame(), CWorld::LoadLevel(), ProcessTileCollisions(), RemoveDeadObjects(), and CEffect::Step().
| #define EFFECTID_SHOCKWAVE 2 |
Definition at line 249 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), CWorld::LoadLevel(), RemoveDeadObjects(), and CEffect::Step().
| #define EFFECTID_TILEANIM 3 |
Definition at line 250 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), InitGame(), CWorld::LoadLevel(), PlayGame(), RemoveDeadObjects(), and CEffect::Step().
| #define EFFECTID_TILESTORM 4 |
Definition at line 251 of file stdafx.h.
Referenced by CEffect::CEffect(), CEffect::Draw(), RemoveDeadObjects(), and CEffect::Step().
| #define INPUT_DOWN 3 |
| #define INPUT_FIRE 5 |
| #define INPUT_LEFT 1 |
| #define INPUT_RIGHT 2 |
| #define INPUT_UP 4 |
| #define INTERACTION_MATRIX_SIZE 15 |
Definition at line 34 of file stdafx.h.
Referenced by getInteraction(), and loadInteractionMatrix().
| #define MAP_SIZE 16 |
Definition at line 66 of file stdafx.h.
Referenced by DrawTiles(), CWorld::LoadLevel(), and ProcessTileCollisions().
| #define MATRIXID_COLLISION 0 |
| #define MATRIXID_DAMAGE 1 |
| #define MATRIXID_EFFECT 2 |
| #define MAX_HEALTH 100 |
| #define MAX_JOYSTICKS 4 |
| #define MAX_LEVELS 100 |
| #define MAX_TANK_SPEED 0.07f |
| #define MENUINPUT_DOWN 4 |
Definition at line 132 of file stdafx.h.
Referenced by GetMenuInput(), MainMenu(), and OptionsMenu().
| #define MENUINPUT_ESCAPE 6 |
Definition at line 134 of file stdafx.h.
Referenced by Credits(), GetMenuInput(), HighScoreMenu(), and OptionsMenu().
| #define MENUINPUT_LEFT 1 |
| #define MENUINPUT_NULL 0 |
| #define MENUINPUT_RIGHT 2 |
| #define MENUINPUT_SELECT 5 |
Definition at line 133 of file stdafx.h.
Referenced by GetMenuInput(), MainMenu(), and OptionsMenu().
| #define MENUINPUT_UP 3 |
Definition at line 131 of file stdafx.h.
Referenced by GetMenuInput(), MainMenu(), and OptionsMenu().
| #define MUSICID_INGAME 1 |
| #define MUSICID_MENU 2 |
| #define NUM_PLAYERS 2 |
Definition at line 41 of file stdafx.h.
Referenced by CWorld::CWorld(), PhysicsUpdate(), and ProcessTileCollisions().
| #define PAGE_HEIGHT 16 |
| #define PAGE_WIDTH 80 |
| #define PI 3.1415926535897932384626433 |
Definition at line 29 of file stdafx.h.
Referenced by DegreesToRadians(), GameLogicFire(), ProcessTileCollisions(), PSystem::PSystem(), RadiansToDegrees(), RemoveDeadObjects(), and TileStorm::TileStorm().
| #define PLAYFIELD_SIZE 32 |
| #define RENDERSTYLE_FLAT 1 |
| #define RENDERSTYLE_PERSPECTIVE 0 |
| #define RESPONSE_COL_REFLECT_BOTH 3 |
| #define RUN_FULLSCREEN 0 |
| #define SCREEN_HEIGHT 768 |
Definition at line 31 of file stdafx.h.
Referenced by Credits(), debugText(), main(), PlayGame(), and ToggleFullScreen().
| #define SCREEN_WIDTH 1024 |
Definition at line 30 of file stdafx.h.
Referenced by Credits(), debugText(), HighScoreMenu(), main(), MainMenu(), OptionsMenu(), PlayGame(), and ToggleFullScreen().
| #define SOUNDID_BOUNCE 26 |
| #define SOUNDID_BURNING 14 |
| #define SOUNDID_CLICK 23 |
| #define SOUNDID_CRUNCH 28 |
| #define SOUNDID_ENGINE 16 |
| #define SOUNDID_EXPLOSION 8 |
Definition at line 263 of file stdafx.h.
Referenced by GameLogicFire(), InitSound(), and CWorld::LoadLevel().
| #define SOUNDID_FIRE_BS 2 |
| #define SOUNDID_FIRE_HS 5 |
| #define SOUNDID_FIRE_LM 4 |
| #define SOUNDID_FIRE_PS 1 |
| #define SOUNDID_FIRE_SB 3 |
| #define SOUNDID_GO 21 |
| #define SOUNDID_HIT 27 |
Definition at line 282 of file stdafx.h.
Referenced by GameLogicFire(), InitGame(), InitSound(), and CWorld::LoadLevel().
| #define SOUNDID_MENUSELECT 22 |
Definition at line 277 of file stdafx.h.
Referenced by Credits(), HighScoreMenu(), InitSound(), MainMenu(), and OptionsMenu().
| #define SOUNDID_NULL 0 |
| #define SOUNDID_POWERUP 25 |
| #define SOUNDID_POWERUP_HEALTH 24 |
| #define SOUNDID_READY 19 |
| #define SOUNDID_REFLECT 6 |
| #define SOUNDID_SCREAM 12 |
| #define SOUNDID_SET 20 |
| #define SOUNDID_VICTORY 13 |
| #define STARTINGSTATE_GO 4 |
| #define STARTINGSTATE_IDLE 1 |
Definition at line 93 of file stdafx.h.
Referenced by CWorld::CWorld(), DrawGLScene(), InitGame(), and PlayGame().
| #define STARTINGSTATE_READY 2 |
| #define STARTINGSTATE_RUN 5 |
| #define STARTINGSTATE_SET 3 |
| #define STARTINGSTATE_VICTORY 6 |
Definition at line 98 of file stdafx.h.
Referenced by DrawGLScene(), PlayGame(), and RemoveDeadObjects().
| #define TANK_FCR_LATERAL 0.05f |
| #define TANK_FCR_MEDIAL 0.01f |
| #define TEXID_BOUNCY_SHOT 12 |
| #define TEXID_CRATE 24 |
| #define TEXID_DIRT 2 |
| #define TEXID_EZRAS_HEAD 28 |
| #define TEXID_GRASS 9 |
| #define TEXID_GRID 26 |
| #define TEXID_HEAT_SEEKER 15 |
| #define TEXID_ICE 7 |
| #define TEXID_LAND_MINE 14 |
| #define TEXID_LAVA 6 |
| #define TEXID_MENUBACK 27 |
| #define TEXID_MUD 4 |
| #define TEXID_NULL 0 |
Definition at line 181 of file stdafx.h.
Referenced by CObject::CObject(), CTile::CTile(), CWorld::LoadLevel(), and TileStorm::TileStorm().
| #define TEXID_PEA_SHOT 11 |
Definition at line 192 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicFire(), and InitTextures().
| #define TEXID_POWERUP_BS 18 |
Definition at line 199 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_POWERUP_HEALTH 16 |
| #define TEXID_POWERUP_HS 21 |
Definition at line 202 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_POWERUP_LM 20 |
Definition at line 201 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_POWERUP_PS 17 |
Definition at line 198 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_POWERUP_SB 19 |
Definition at line 200 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_SAND 3 |
| #define TEXID_SUPER_BULLET 13 |
| #define TEXID_TANK 10 |
Definition at line 191 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and InitTextures().
| #define TEXID_TARMAC 8 |
| #define TEXID_TNT_BLOCK 22 |
| #define TEXID_WALL_BLOCK 23 |
| #define TEXID_WATER 5 |
| #define TILE_DAMAGE_LAVA 1 |
| #define TILE_EFFECT_DAMAGE 1 |
Definition at line 173 of file stdafx.h.
Referenced by CWorld::LoadLevel(), and ProcessTileCollisions().
| #define TILE_EFFECT_NULL 0 |
| #define TILE_EFFECT_TIMER 20 |
| #define TILE_SOUND_TIMER 250 |
| #define TILEANIM_FADEOUT_TIME 1000 |
| #define TILEID_BLANK 1 |
| #define TILEID_DIRT 2 |
| #define TILEID_GRASS 9 |
| #define TILEID_ICE 7 |
| #define TILEID_LAVA 6 |
| #define TILEID_MUD 4 |
| #define TILEID_NULL 0 |
| #define TILEID_SAND 3 |
| #define TILEID_TARMAC 8 |
| #define TILEID_WATER 5 |
| #define TILEMAP_DISTANCE -0.01 |
| #define TINTID_ARMYBROWN 8 |
| #define TINTID_ARMYGREEN 7 |
| #define TINTID_BLUE 5 |
| #define TINTID_GREEN 4 |
| #define TINTID_NULL 0 |
| #define TINTID_ORANGE 2 |
| #define TINTID_PURPLE 6 |
| #define TINTID_RED 1 |
| #define TINTID_YELLOW 3 |
| #define TYPEID_BOUNCY_SHOT 1 |
Definition at line 143 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicFire(), and PhysicsReflect().
| #define TYPEID_HEAT_SEEKER 4 |
| #define TYPEID_LAND_MINE 3 |
| #define TYPEID_NULL 15 |
| #define TYPEID_PEA_SHOT 0 |
| #define TYPEID_POWERUP_BS 7 |
Definition at line 149 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicEquip(), and CWorld::LoadLevel().
| #define TYPEID_POWERUP_HEALTH 5 |
| #define TYPEID_POWERUP_HS 10 |
Definition at line 152 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicEquip(), and CWorld::LoadLevel().
| #define TYPEID_POWERUP_LM 9 |
Definition at line 151 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicEquip(), and CWorld::LoadLevel().
| #define TYPEID_POWERUP_PS 6 |
Definition at line 148 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicEquip(), and CWorld::LoadLevel().
| #define TYPEID_POWERUP_SB 8 |
Definition at line 150 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicEquip(), and CWorld::LoadLevel().
| #define TYPEID_SUPER_BULLET 2 |
Definition at line 144 of file stdafx.h.
Referenced by CObject::CObject(), GameLogicFire(), and RemoveDeadObjects().
| #define TYPEID_TANK 14 |
Definition at line 156 of file stdafx.h.
Referenced by CObject::CObject(), InitGame(), RemoveDeadObjects(), and UpdateBody().
| #define TYPEID_TNT_BLOCK 11 |
Definition at line 153 of file stdafx.h.
Referenced by CObject::CObject(), CWorld::LoadLevel(), and RemoveDeadObjects().
| #define TYPEID_WALL_BLOCK 12 |
Definition at line 154 of file stdafx.h.
Referenced by CObject::CObject(), DamageRadius(), and CWorld::LoadLevel().
| #define TYPEID_WOOD_BLOCK 13 |
Definition at line 155 of file stdafx.h.
Referenced by CObject::CObject(), CWorld::LoadLevel(), and UpdateBody().
| #define WEAPONID_BOUNCY_SHOT 2 |
Definition at line 229 of file stdafx.h.
Referenced by DrawHUD(), GameLogicEquip(), and GameLogicFire().
| #define WEAPONID_HEAT_SEEKER 5 |
Definition at line 232 of file stdafx.h.
Referenced by DrawHUD(), GameLogicEquip(), and GameLogicFire().
| #define WEAPONID_LAND_MINE 4 |
Definition at line 231 of file stdafx.h.
Referenced by DrawHUD(), GameLogicEquip(), and GameLogicFire().
| #define WEAPONID_NULL 0 |
Definition at line 227 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), and GameLogicFire().
| #define WEAPONID_PEA_SHOT 1 |
Definition at line 228 of file stdafx.h.
Referenced by CObject::CObject(), DrawHUD(), GameLogicEquip(), and GameLogicFire().
| #define WEAPONID_SUPER_BULLET 3 |
Definition at line 230 of file stdafx.h.
Referenced by DrawHUD(), GameLogicEquip(), and GameLogicFire().
Copyright Windsor Schmidt 2006 - All rights reserved.