Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

ATypes.h File Reference


Detailed Description

Datatypes needed for the engine.

Definition in file ATypes.h.

#include "ExternalLibs.h"

Include dependency graph for ATypes.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Compounds

class  AProfilerBlock
class  Box
class  Error
 Use this when throwing an error. More...

struct  Int2Tuple
 a tuple of 2 ints. Each number can't be greater than 999 More...

struct  Int3Tuple
 The layman's tuple of 3 ints. Each number can't be greater than 999. More...

struct  MeshEntry
 User code picks a mesh by giving an index to an array of MeshEntry. More...

struct  MeshRenderRequestEntry
 A request to render a mesh. To batch up requests that a user wants so they can be processed at the same time, for performance reasons. More...

struct  OverlayEntry
 When an overlay operation is requested, we add an overlay entry to the list of things to do. More...

struct  SpriteRenderRequestEntry
class  TerminateNormally
 Causes the program to exit. More...

struct  TerrainEntry
 ----------------------------------------------------------------------------------- More...


Typedefs

typedef D3DXVECTOR2 Vec2D
typedef D3DXVECTOR3 Vec3D
typedef D3DXVECTOR4 Vec4D
typedef D3DXMATRIX Matx
typedef void(* AierraInitFunc )()
typedef void(* AierraUpdateFunc )()
typedef void(* AierraRenderFunc )()
typedef void(* AierraShutdownFunc )()
typedef int AFont
typedef int AMesh
typedef int ATexture
typedef int ATerrain

Functions

void profiler_begin (string s)
void profiler_end (string s)

Variables

const int TERR_ROWS = 90
const int TERR_COLS = 90


Typedef Documentation

typedef int AFont
 

Definition at line 44 of file ATypes.h.

Referenced by load_font().

typedef void(* AierraInitFunc)()
 

Definition at line 39 of file ATypes.h.

typedef void(* AierraRenderFunc)()
 

Definition at line 41 of file ATypes.h.

typedef void(* AierraShutdownFunc)()
 

Definition at line 42 of file ATypes.h.

typedef void(* AierraUpdateFunc)()
 

Definition at line 40 of file ATypes.h.

typedef int AMesh
 

Definition at line 45 of file ATypes.h.

Referenced by load_mesh(), BattleGroup::render(), BattleEntry::renderBullets(), and BattleEntry::renderDebris().

typedef int ATerrain
 

Definition at line 47 of file ATypes.h.

Referenced by load_terrain(), and terrain_create().

typedef int ATexture
 

Definition at line 46 of file ATypes.h.

Referenced by displayLoadingScreen(), Icon::image(), load_texture(), BattleGroup::render(), renderParticleList(), renderSponsor(), and sprite_process().

typedef D3DXMATRIX Matx
 

Definition at line 37 of file ATypes.h.

Referenced by flare_process(), math_translateObjectToWorld(), mesh_processRenderRequests(), sprite_process(), and terrain_processRenderRequest().

typedef D3DXVECTOR2 Vec2D
 

Definition at line 34 of file ATypes.h.

Referenced by MilitaryUnit::around(), MilitaryUnit::contains(), City::contains(), Map::createWorldMap(), displayLoadingScreen(), Overhead::doCollisionDetection(), drawBox(), MilitaryUnit::drawColor(), drawConsole(), drawFPS(), Icon::drawHelpString(), BattleGroup::drawOutlineBox(), City::drawSelectBox(), BattleEntry::getBattleLocation(), Icon::Icon(), HUD::init(), BattleEntry::input(), BattleEntry::inputIssueGroupCommand(), BattleEntry::inputIssueJetsCommand(), BattleEntry::inputSelectGroups(), BattleEntry::inputSelectJets(), HUD::isButtonCallRFMUnitTypeClicked(), HUD::isButtonStopClicked(), BattleGroup::isContain2DPoint(), load_mesh(), math_dist2D(), math_translateWorldToScreen(), MilitaryUnit::move(), Overhead::overhead_render(), Overhead::overhead_update(), Overhead::overheadRender(), Globals::MessagesReceived::print(), Overhead::printPlayerList(), HUD::processMiniMapInput(), Overhead::processOverheadInput(), HUD::processOverheadInput(), Rect::Rect(), HUD::render(), BattleGroup::render(), BattleEntry::render(), BattleEntry::renderGroups(), BattleJets::renderIcon(), BattleEntry::renderInterface(), BattleEntry::renderJets(), renderMainMenu(), HUD::renderMiniMap(), BattleEntry::renderMiniMap(), renderMultiplayMenu(), renderSponsor(), sendReinforcement(), sys_go(), terrain_getHeight(), HUD::translateMiniMapToWorld(), HUD::translateMiniMapToWorld3D(), HUD::translateWorldToMiniMap(), triArea(), updateInput(), updateMainMenu(), and updateMultiplayMenu().

typedef D3DXVECTOR3 Vec3D
 

Definition at line 35 of file ATypes.h.

Referenced by BattleGroup::acquireGroupTargets(), BattleUnitData::artillerySize(), BattleUnitData::artilleryTurretSize(), Globals::ArtWork::ArtWork(), BattleBullet::BattleBullet(), BattleEntry::BattleEntry(), BattleGroup::BattleGroup(), BattleJets::BattleJets(), camera_getPos(), camera_getVec(), camera_set(), GameState::camTarget(), City::City(), Player::color(), MilitaryUnit::color(), City::color(), AI::Player::color(), BattleEntry::contains(), Map::createCity(), createNMap(), Map::createUnit(), createVIB(), BattleGroup::destroyUnit(), Overhead::doVictoryTest(), City::draw(), MilitaryUnit::drawBox(), MilitaryUnit::drawColor(), BattleGroup::drawOutlineBox(), City::drawSelectBox(), BattleGroup::fire(), BattleGroup::fireAntiAir(), BattleJets::fireAntiAirMissiles(), BattleJets::fireAntiSurfaceMissiles(), BattleJets::flyTo(), Map::getColorVec3D(), BattleEntry::getTeamAColor(), BattleEntry::getTeamBColor(), BattleEntry::getWinningTeamColor(), MilitaryUnit::goalPosition(), BattleUnitData::heavyTankSize(), BattleUnitData::heavyTankTurretSize(), BattleEntry::initBattle(), BattleEntry::input(), BattleEntry::inputIssueGroupCommand(), BattleEntry::inputIssueJetsCommand(), BattleEntry::inputSelectByHotKey(), BattleEntry::inputSelectGroups(), BattleEntry::inputSelectJets(), BattleGroup::isContain2DPoint(), BattleUnitData::jetSize(), BattleUnitData::launcherSize(), BattleUnitData::lightTankSize(), BattleUnitData::lightTankTurretSize(), load_mesh(), math_dist3D(), math_distPlanar3D(), math_getDir(), math_translateObjectToWorld(), math_translateScreenToWorldPlane(), math_translateWorldToScreen(), MilitaryUnit::MilitaryUnit(), MilitaryUnit::move(), BattleGroup::moveBattleGroup(), BattleGroup::moveUnits(), BattleJets::orderToBomb(), BattleJets::orderToGuard(), BattleJets::orderToReturn(), Overhead::overhead_init(), Overhead::overhead_render(), Overhead::overhead_update(), Overhead::overheadRender(), Helper::playerNumberToPlayerColor(), Helper::playerNumberToPlayerPointer(), playVoiceContact(), playVoicePanick(), playVoiceStress(), MilitaryUnit::position(), City::position(), Overhead::printPlayerList(), HUD::processMiniMapInput(), Overhead::processOverheadInput(), HUD::processOverheadInput(), BattleEntry::processQueuedInput(), City::rallyPoint(), HUD::render(), BattleJets::render(), BattleGroup::render(), BattleEntry::renderBullets(), BattleEntry::renderDebris(), BattleEntry::renderEnvironment(), BattleEntry::renderGroups(), BattleEntry::renderInterface(), BattleEntry::renderJets(), BattleEntry::sendGroundReinforcement(), sendReinforcement(), sys_init(), BattleJets::takeHit(), BattleGroup::takeHit(), HUD::translateMiniMapToWorld3D(), Helper::unserializeVec3D(), Overhead::updateBattleEntries(), and BattleEntry::updateBullets().

typedef D3DXVECTOR4 Vec4D
 

Definition at line 36 of file ATypes.h.

Referenced by BattleGroup::render(), BattleEntry::renderEnvironment(), and renderParticleList().


Function Documentation

void profiler_begin string    s
 

Definition at line 56 of file AProfiler.cpp.

References getOSTime().

Referenced by AProfilerBlock::AProfilerBlock(), and doGameLoop().

00057 {
00058         map<string,__int64>::iterator iter;
00059         iter = AS.profiler_startTime.find(s);
00060         if( iter==AS.profiler_startTime.end() )         // if this is the first time we come across this name
00061         {
00062                 AS.profiler_startTime[s] = getOSTime();
00063                 AS.profiler_totalTime[s] = 0;           
00064                 AS.profiler_names.push_back(s);
00065         }
00066         else
00067         {
00068                 AS.profiler_startTime[s] = getOSTime();
00069         }
00070 }

void profiler_end string    s
 

Definition at line 72 of file AProfiler.cpp.

References getOSTime().

Referenced by doGameLoop(), and AProfilerBlock::~AProfilerBlock().

00073 {
00074         map<string,__int64>::iterator iter;
00075         iter = AS.profiler_totalTime.find(s);
00076         if( iter==AS.profiler_totalTime.end() )
00077         {
00078                 throw Error("Profiler_end("+s+")  not preceded by Profiler_begin");
00079         }
00080         else
00081         {
00082                 iter->second += getOSTime() - AS.profiler_startTime.find(s)->second;            
00083         }
00084 }


Variable Documentation

const int TERR_COLS = 90
 

Definition at line 50 of file ATypes.h.

Referenced by createBMap(), createNMap(), createVIB(), createZMap(), terrain_create(), terrain_getHeight(), and terrain_processRenderRequest().

const int TERR_ROWS = 90
 

Definition at line 49 of file ATypes.h.

Referenced by createBMap(), createNMap(), createVIB(), createZMap(), terrain_create(), terrain_getHeight(), and terrain_processRenderRequest().


Generated on Wed Apr 23 05:50:40 2003 for Modern Warfare by doxygen1.3-rc2