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

Globals::ArtWork Class Reference

#include <globals.h>

List of all members.


Detailed Description

All models, 3d meshs, bump maps and other artwork needed by the game will be stored here.

Definition at line 132 of file globals.h.

Public Methods

 ArtWork (void)
 ~ArtWork (void)

Public Attributes

ATerrain worldMap
const ATexture mouse
const ATexture terrainTexture
const AMesh terrainMesh
const ATexture lightTank_texture
const AMesh lightTank_mesh
const AMesh lightTankTurret_mesh
const ATexture city_texture
const AMesh city_mesh
const AMesh heavyTank_mesh
const AMesh heavyTankTurret_mesh
const ATexture heavyTank_texture
const AMesh launcher_mesh
const ATexture launcher_texture
const AMesh artillery_mesh
const AMesh artilleryTurret_mesh
const ATexture artillery_texture
const AMesh jet_mesh
const ATexture jet_texture
const AMesh battleGroupMesh
const ATexture battleGroupTexture
const AMesh battleShellMesh
const AMesh battleRocketMesh
const AMesh battleICBMMesh
const ATexture battleBulletTexture
const ATexture debrisTex
const AMesh debris1
const AMesh debris2
const AMesh skyMesh
const ATexture skyTexture
const ATexture terrainTexLow
const ATexture terrainTexHigh
const ATexture terrainTexNormal
vector< ATerrainbattleTerrains
Vec3D trees [MAX_TREE]
Vec3D rocks [MAX_ROCK]
const ATexture flareTexture
const ATexture smokeTextureSmall
const ATexture smokeTextureLarge
const ATexture exploTextureSmall
const ATexture exploTextureLarge
const ATexture artilTextureShell
const ATexture shadow
const AMesh envRockMesh
const AMesh envTreeMesh
const ATexture envRockTex
const ATexture envTreeTex
const ATexture buildMenuTex
const ATexture jetsIconTex
const ATexture hud
const ATexture portraitLT
const ATexture portraitHT
const ATexture portraitLA
const ATexture portraitAR
const ATexture portraitJE
const ATexture switchToOverhead
const ATexture upgradeEconTex
const ATexture minimapBattleIcon
const ATexture butStop
const ATexture butJetGuard
const ATexture butJetBomb
const ATexture playersNBattlesListTex
const ATexture confirmQuit
const ATexture youWinTex
const ATexture youLoseTex
const ATexture callRFMIconTex
const ATexture callRFMPanelTex
const ATexture main_leftField
const ATexture main_sponsorMS
const ATexture main_sponsorNV
const ATexture main_sponsorPF
const ATexture main_menuTex
const ATexture main_multiplayTex
const AMesh circle
const AMesh thinCircle
const AMesh crossHair
const ATexture colorGreen
const ATexture colorRed
const ATexture colorBlue

Private Methods

ArtWork & operator= (const ArtWork &rhs)
 Do not want copies of this class to be made.


Constructor & Destructor Documentation

Globals::ArtWork::ArtWork void   
 

Definition at line 94 of file Globals.cpp.

References battleTerrains, Colors::blue(), Colors::green(), load_terrain(), MAX_ROCK, MAX_TREE, Colors::red(), rocks, sys_randFloat(), sys_randInt(), terrain_getHeight(), trees, Overhead::units, Vec3D, worldMap, and Overhead::youWin.

00095 :mouse(load_texture("textures\\interface\\cursor.dds")),
00096 terrainTexture(load_texture("textures\\environment\\terrain_mixed.tga")),
00097 terrainMesh(load_mesh("models\\environment\\terrain_bigbox.obj")),
00098 lightTank_texture(load_texture("textures\\units\\tank_light.dds")),                                     // light tank
00099 lightTank_mesh(load_mesh("models\\parts\\tank_light_chasis.obj")),
00100 lightTankTurret_mesh(load_mesh("models\\parts\\tank_light_turret.obj")),
00101 heavyTank_mesh(load_mesh("models\\parts\\tank_heavy_chasis.obj")),                                      // heavy tank
00102 heavyTankTurret_mesh(load_mesh("models\\parts\\tank_heavy_turret.obj")),
00103 heavyTank_texture(load_texture("textures\\units\\tank_heavy.dds")),
00104 launcher_mesh(load_mesh("models\\parts\\launcher.obj")),                                                        // launcher
00105 launcher_texture(load_texture("textures\\units\\launcher.dds")),
00106 artillery_mesh(load_mesh("models\\parts\\artillery_chasis.obj")),                                       // artillery
00107 artilleryTurret_mesh(load_mesh("models\\parts\\artillery_turret.obj")),
00108 artillery_texture(load_texture("textures\\units\\artillery.dds")),
00109 jet_mesh(load_mesh("models\\parts\\jet.obj")),                                                                          // jet
00110 jet_texture(load_texture("textures\\units\\jet.dds")),
00111 city_texture(load_texture("textures\\environment\\city.dds")),                                          // city
00112 city_mesh(load_mesh("models\\parts\\city.obj")),
00113 battleGroupMesh(load_mesh("models\\units\\battleGroup.obj")),
00114 battleGroupTexture(load_texture("textures\\demos\\battleGroup.tga")),
00115 battleShellMesh(load_mesh("models\\parts\\bullet_shell.obj")),
00116 battleRocketMesh(load_mesh("models\\parts\\bullet_rocket.obj")),
00117 battleICBMMesh(load_mesh("models\\parts\\bullet_icbm.obj")),
00118 battleBulletTexture(load_texture("textures\\bullets\\bullets.tga")),
00119 debrisTex(load_texture("textures\\units\\debris.tga")),
00120 debris1(load_mesh("models\\parts\\debris1.obj")),
00121 debris2(load_mesh("models\\parts\\debris2.obj")),
00122 skyMesh(load_mesh("models\\parts\\sky.obj")),
00123 skyTexture(load_texture("textures\\environment\\sky_plain.tga")),
00124 terrainTexLow(load_texture("textures\\environment\\terrainDryLand.dds")),
00125 terrainTexHigh(load_texture("textures\\environment\\terrainRockyMoss.dds")),
00126 terrainTexNormal(load_texture("textures\\environment\\terrainBump.dds")),
00127 flareTexture(load_texture("textures\\particles\\flare01.tga")),
00128 smokeTextureSmall(load_texture("textures\\particles\\smoke01.dds")),
00129 smokeTextureLarge(load_texture("textures\\particles\\smoke01.dds")),
00130 exploTextureSmall(load_texture("textures\\particles\\explosion01.dds")),
00131 exploTextureLarge(load_texture("textures\\particles\\explosion02.dds")),
00132 artilTextureShell(load_texture("textures\\particles\\flare02.dds")),
00133 shadow(load_texture("textures\\particles\\shadow01.dds")),
00134 envRockMesh(load_mesh("models\\parts\\env_rock1.obj")),
00135 envTreeMesh(load_mesh("models\\parts\\env_tree1.obj")),
00136 envRockTex(load_texture("textures\\environment\\rock1.dds")),
00137 envTreeTex(load_texture("textures\\environment\\tree1.dds")),
00138 buildMenuTex(load_texture("textures\\interface\\buildMenu.tga")),
00139 jetsIconTex(load_texture("textures\\interface\\JetsIcon.tga")),
00140 hud(load_texture("textures\\interface\\hud.tga")),
00141 portraitLT(load_texture("textures\\interface\\portrait_lightTank.tga")),
00142 portraitHT(load_texture("textures\\interface\\portrait_heavyTank.tga")),
00143 portraitLA(load_texture("textures\\interface\\portrait_launcher.tga")),
00144 portraitAR(load_texture("textures\\interface\\portrait_artillery.tga")),
00145 portraitJE(load_texture("textures\\interface\\portrait_jet.tga")),
00146 switchToOverhead(load_texture("textures\\interface\\switch_to_overhead.tga")),
00147 upgradeEconTex(load_texture("textures\\interface\\upgrade_econ.tga")),
00148 
00149 butStop(load_texture("textures\\interface\\stop.tga")),
00150 butJetGuard(load_texture("textures\\interface\\jet_guard.tga")),
00151 butJetBomb(load_texture("textures\\interface\\jet_bomb.tga")),
00152 
00153 confirmQuit(load_texture("textures\\interface\\confirmQuit.tga")),
00154 youWinTex(load_texture("textures\\interface\\youWin.dds")),
00155 youLoseTex(load_texture("textures\\interface\\youLost.dds")),
00156 
00157 playersNBattlesListTex(load_texture("textures\\interface\\PlayersNBattlesList.tga")),
00158 
00159 minimapBattleIcon(load_texture("textures\\interface\\hud_mm_battleIcon.dds")),
00160 circle(load_mesh("models\\parts\\circle.obj")),
00161 thinCircle(load_mesh("models\\parts\\circle_thin.obj")),
00162 crossHair(load_mesh("models\\parts\\crossHair.obj")),
00163 
00164         // pure colors
00165         colorGreen(load_texture("textures\\colors\\green.tga")),
00166         colorRed(load_texture("textures\\colors\\red.tga")),
00167         colorBlue(load_texture("textures\\colors\\blue.tga")),
00168 
00169         callRFMIconTex(load_texture("textures\\interface\\rfm_menu.tga")),
00170         callRFMPanelTex(load_texture("textures\\interface\\rfm_panel.tga")),
00171 
00172         // main mode
00173         main_leftField(load_texture("textures\\interface\\main_leftField.tga")),
00174         main_menuTex(load_texture("textures\\interface\\main_screen.tga")),
00175         main_multiplayTex(load_texture("textures\\interface\\main_multiplay.tga")),
00176         main_sponsorMS(load_texture("textures\\interface\\main_sponsor_ms.tga")),
00177         main_sponsorNV(load_texture("textures\\interface\\main_sponsor_nv.tga")),
00178         main_sponsorPF(load_texture("textures\\interface\\main_sponsor_pf.tga"))
00179 
00180 {       
00181         worldMap = load_terrain("maps\\map1.tga", 1000.0f, 1000.0f, 100.0f, -50.0f );
00182 
00183         
00184         battleTerrains.push_back( load_terrain("maps\\map1.tga", 800.0f, 800.0f, 100.0f, -50.0f ) );
00185 
00186         // trees & rocks
00187         for( int i=0; i<MAX_TREE; i++ )
00188         {
00189                 trees[i].x = sys_randFloat() * 390.0f;
00190                 trees[i].y = sys_randFloat() * 390.0f;
00191                 trees[i].z = terrain_getHeight( battleTerrains[0], trees[i].x, trees[i].y );
00192         }
00193         for( int i=0; i<MAX_ROCK; i++ )
00194         {
00195                 rocks[i].x = sys_randFloat() * 390.0f;
00196                 rocks[i].y = sys_randFloat() * 390.0f;
00197                 rocks[i].z = terrain_getHeight( battleTerrains[0], rocks[i].x, rocks[i].y );
00198         }
00199         // cluster trees together
00200         for( int i=0; i<MAX_TREE*4; i++ )
00201         {
00202                 int a = sys_randInt() % (MAX_TREE/2);
00203                 int b = sys_randInt() % MAX_TREE;
00204                 if( a!=b )
00205                 {
00206                         Vec3D dist = trees[b] - trees[a];
00207                         trees[a] += dist * 0.7f;
00208                         trees[a].z = terrain_getHeight( battleTerrains[0], trees[a].x, trees[a].y );
00209                 }
00210         }
00211 
00212         static int instances = 0;
00213         if (instances++ > 0) {
00214                 throw Error("Programming Error: Can only have 1 instance of the ArtWork class");
00215         }
00216 }

Globals::ArtWork::~ArtWork void   
 

Definition at line 218 of file Globals.cpp.

00219 {
00220 }


Member Function Documentation

ArtWork& Globals::ArtWork::operator= const ArtWork &    rhs [private]
 

Do not want copies of this class to be made.


Member Data Documentation

const AMesh Globals::ArtWork::artillery_mesh
 

Definition at line 154 of file globals.h.

const ATexture Globals::ArtWork::artillery_texture
 

Definition at line 156 of file globals.h.

const AMesh Globals::ArtWork::artilleryTurret_mesh
 

Definition at line 155 of file globals.h.

const ATexture Globals::ArtWork::artilTextureShell
 

Definition at line 184 of file globals.h.

const ATexture Globals::ArtWork::battleBulletTexture
 

Definition at line 166 of file globals.h.

const AMesh Globals::ArtWork::battleGroupMesh
 

Definition at line 161 of file globals.h.

const ATexture Globals::ArtWork::battleGroupTexture
 

Definition at line 162 of file globals.h.

const AMesh Globals::ArtWork::battleICBMMesh
 

Definition at line 165 of file globals.h.

const AMesh Globals::ArtWork::battleRocketMesh
 

Definition at line 164 of file globals.h.

const AMesh Globals::ArtWork::battleShellMesh
 

Definition at line 163 of file globals.h.

vector<ATerrain> Globals::ArtWork::battleTerrains
 

Definition at line 174 of file globals.h.

Referenced by ArtWork().

const ATexture Globals::ArtWork::buildMenuTex
 

Definition at line 194 of file globals.h.

const ATexture Globals::ArtWork::butJetBomb
 

Definition at line 204 of file globals.h.

const ATexture Globals::ArtWork::butJetGuard
 

Definition at line 203 of file globals.h.

const ATexture Globals::ArtWork::butStop
 

Definition at line 202 of file globals.h.

const ATexture Globals::ArtWork::callRFMIconTex
 

Definition at line 213 of file globals.h.

const ATexture Globals::ArtWork::callRFMPanelTex
 

Definition at line 214 of file globals.h.

const AMesh Globals::ArtWork::circle
 

Definition at line 225 of file globals.h.

const AMesh Globals::ArtWork::city_mesh
 

Definition at line 147 of file globals.h.

const ATexture Globals::ArtWork::city_texture
 

Definition at line 146 of file globals.h.

const ATexture Globals::ArtWork::colorBlue
 

Definition at line 232 of file globals.h.

const ATexture Globals::ArtWork::colorGreen
 

Definition at line 230 of file globals.h.

const ATexture Globals::ArtWork::colorRed
 

Definition at line 231 of file globals.h.

const ATexture Globals::ArtWork::confirmQuit
 

Definition at line 208 of file globals.h.

const AMesh Globals::ArtWork::crossHair
 

Definition at line 227 of file globals.h.

const AMesh Globals::ArtWork::debris1
 

Definition at line 168 of file globals.h.

const AMesh Globals::ArtWork::debris2
 

Definition at line 168 of file globals.h.

const ATexture Globals::ArtWork::debrisTex
 

Definition at line 167 of file globals.h.

const AMesh Globals::ArtWork::envRockMesh
 

Definition at line 188 of file globals.h.

const ATexture Globals::ArtWork::envRockTex
 

Definition at line 190 of file globals.h.

const AMesh Globals::ArtWork::envTreeMesh
 

Definition at line 189 of file globals.h.

const ATexture Globals::ArtWork::envTreeTex
 

Definition at line 191 of file globals.h.

const ATexture Globals::ArtWork::exploTextureLarge
 

Definition at line 183 of file globals.h.

const ATexture Globals::ArtWork::exploTextureSmall
 

Definition at line 182 of file globals.h.

const ATexture Globals::ArtWork::flareTexture
 

Definition at line 179 of file globals.h.

const AMesh Globals::ArtWork::heavyTank_mesh
 

Definition at line 149 of file globals.h.

const ATexture Globals::ArtWork::heavyTank_texture
 

Definition at line 151 of file globals.h.

const AMesh Globals::ArtWork::heavyTankTurret_mesh
 

Definition at line 150 of file globals.h.

const ATexture Globals::ArtWork::hud
 

Definition at line 196 of file globals.h.

const AMesh Globals::ArtWork::jet_mesh
 

Definition at line 157 of file globals.h.

const ATexture Globals::ArtWork::jet_texture
 

Definition at line 158 of file globals.h.

const ATexture Globals::ArtWork::jetsIconTex
 

Definition at line 195 of file globals.h.

const AMesh Globals::ArtWork::launcher_mesh
 

Definition at line 152 of file globals.h.

const ATexture Globals::ArtWork::launcher_texture
 

Definition at line 153 of file globals.h.

const AMesh Globals::ArtWork::lightTank_mesh
 

Definition at line 144 of file globals.h.

const ATexture Globals::ArtWork::lightTank_texture
 

Definition at line 143 of file globals.h.

const AMesh Globals::ArtWork::lightTankTurret_mesh
 

Definition at line 145 of file globals.h.

const ATexture Globals::ArtWork::main_leftField
 

Definition at line 217 of file globals.h.

const ATexture Globals::ArtWork::main_menuTex
 

Definition at line 221 of file globals.h.

const ATexture Globals::ArtWork::main_multiplayTex
 

Definition at line 222 of file globals.h.

const ATexture Globals::ArtWork::main_sponsorMS
 

Definition at line 218 of file globals.h.

const ATexture Globals::ArtWork::main_sponsorNV
 

Definition at line 219 of file globals.h.

const ATexture Globals::ArtWork::main_sponsorPF
 

Definition at line 220 of file globals.h.

const ATexture Globals::ArtWork::minimapBattleIcon
 

Definition at line 200 of file globals.h.

const ATexture Globals::ArtWork::mouse
 

Definition at line 140 of file globals.h.

const ATexture Globals::ArtWork::playersNBattlesListTex
 

Definition at line 206 of file globals.h.

const ATexture Globals::ArtWork::portraitAR
 

Definition at line 197 of file globals.h.

const ATexture Globals::ArtWork::portraitHT
 

Definition at line 197 of file globals.h.

const ATexture Globals::ArtWork::portraitJE
 

Definition at line 197 of file globals.h.

const ATexture Globals::ArtWork::portraitLA
 

Definition at line 197 of file globals.h.

const ATexture Globals::ArtWork::portraitLT
 

Definition at line 197 of file globals.h.

Vec3D Globals::ArtWork::rocks[MAX_ROCK]
 

Definition at line 176 of file globals.h.

Referenced by ArtWork().

const ATexture Globals::ArtWork::shadow
 

Definition at line 185 of file globals.h.

const AMesh Globals::ArtWork::skyMesh
 

Definition at line 170 of file globals.h.

const ATexture Globals::ArtWork::skyTexture
 

Definition at line 171 of file globals.h.

const ATexture Globals::ArtWork::smokeTextureLarge
 

Definition at line 181 of file globals.h.

const ATexture Globals::ArtWork::smokeTextureSmall
 

Definition at line 180 of file globals.h.

const ATexture Globals::ArtWork::switchToOverhead
 

Definition at line 198 of file globals.h.

const AMesh Globals::ArtWork::terrainMesh
 

Definition at line 142 of file globals.h.

const ATexture Globals::ArtWork::terrainTexHigh
 

Definition at line 172 of file globals.h.

const ATexture Globals::ArtWork::terrainTexLow
 

Definition at line 172 of file globals.h.

const ATexture Globals::ArtWork::terrainTexNormal
 

Definition at line 172 of file globals.h.

const ATexture Globals::ArtWork::terrainTexture
 

Definition at line 141 of file globals.h.

const AMesh Globals::ArtWork::thinCircle
 

Definition at line 226 of file globals.h.

Vec3D Globals::ArtWork::trees[MAX_TREE]
 

Definition at line 175 of file globals.h.

Referenced by ArtWork().

const ATexture Globals::ArtWork::upgradeEconTex
 

Definition at line 199 of file globals.h.

ATerrain Globals::ArtWork::worldMap
 

Definition at line 138 of file globals.h.

Referenced by ArtWork().

const ATexture Globals::ArtWork::youLoseTex
 

Definition at line 210 of file globals.h.

const ATexture Globals::ArtWork::youWinTex
 

Definition at line 209 of file globals.h.


The documentation for this class was generated from the following files:
Generated on Wed Apr 23 05:52:17 2003 for Modern Warfare by doxygen1.3-rc2