D:/simple_rts/src/main.cpp File Reference

#include "ExampleApplication.h"
#include "Game.h"
#include "Client.h"
#include "RTSCamera.h"
#include "RTSCameraUpdater.h"
#include "Building.h"
#include "Unit.h"
#include "UnitTypeManager.h"
#include "Team.h"
#include "Level.h"
#include "LevelStatusVisualizer.h"
#include "OgreVector3.h"
#include "OgreMath.h"
#include <math.h>
#include <exception>
#include "windows.h"

Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  TutorialApplication

Defines

#define WIN32_LEAN_AND_MEAN

Functions

INT WINAPI WinMain (HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT)

Variables

const float UNIT_SCALE = 1.0f
const int UNIT_COUNT = 10
const int BUILDING_COUNT = 5
const float TERRAIN_QUERY_HEIGHT = 5000.0f
RaySceneQuery * mSceneRayQuery


Define Documentation

#define WIN32_LEAN_AND_MEAN

Definition at line 297 of file main.cpp.


Function Documentation

INT WINAPI WinMain ( HINSTANCE  hInst,
HINSTANCE  ,
LPSTR  strCmdLine,
INT   
)

Definition at line 300 of file main.cpp.

00304 {
00305         // Create application object
00306         TutorialApplication app;
00307 
00308         try {
00309                 app.go();
00310         } catch( Exception& e ) {
00311 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 
00312                 MessageBoxA( NULL, e.getFullDescription().c_str(), "An exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
00313 #else
00314                 fprintf(stderr, "An exception has occured: %s\n",
00315                         e.getFullDescription().c_str());
00316 #endif
00317         }
00318         catch ( exception& e )
00319         {
00320 #if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 
00321                 MessageBoxA( NULL, e.what (), "An unknown exception has occured!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
00322 #else
00323                 fprintf(stderr, "An non Ogre exception has occured: %s\n",
00324                         e.what() );
00325 #endif
00326         }
00327 
00328         return 0;
00329 }


Variable Documentation

const int BUILDING_COUNT = 5

Definition at line 45 of file main.cpp.

Referenced by TutorialApplication::_createTeamA().

RaySceneQuery* mSceneRayQuery

Definition at line 49 of file main.cpp.

Referenced by TutorialApplication::_createTeamA(), TutorialApplication::chooseSceneManager(), TutorialApplication::TutorialApplication(), and TutorialApplication::~TutorialApplication().

const float TERRAIN_QUERY_HEIGHT = 5000.0f

Definition at line 47 of file main.cpp.

Referenced by TutorialApplication::_createTeamA().

const int UNIT_COUNT = 10

Definition at line 44 of file main.cpp.

Referenced by TutorialApplication::_createTeamA(), and TutorialApplication::_createTeamB().

const float UNIT_SCALE = 1.0f

Definition at line 43 of file main.cpp.

Referenced by TutorialApplication::_createTeamA(), TutorialApplication::_createTeamB(), and TutorialApplication::_createTeamC().


Generated on Sun Jun 25 19:23:43 2006 for Valors End by  doxygen 1.4.7