K3dMngSystem.cpp

Go to the documentation of this file.
00001 
00014 /***************************************************************************
00015  *   Copyright (C) 2007 by Jan Koci   *
00016  *   honza.koci@email.cz   *
00017  *   http://kengine.sourceforge.net/tutorial/
00018  *                                                                         *
00019  *   This program is free software; you can redistribute it and/or modify  *
00020  *   it under the terms of the GNU General Public License as published by  *
00021  *   the Free Software Foundation; either version 2 of the License, or     *
00022  *   (at your option) any later version.                                   *
00023  *                                                                         *
00024  *   This program is distributed in the hope that it will be useful,       *
00025  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00026  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00027  *   GNU General Public License for more details.                          *
00028  *                                                                         *
00029  *   You should have received a copy of the GNU General Public License     *
00030  *   along with this program; if not, write to the                         *
00031  *   Free Software Foundation, Inc.,                                       *
00032  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00033  ***************************************************************************/
00034 
00035 
00036 #include "K3dMngSystem.h"
00037 
00038 K3dMngSystem::K3dMngSystem(K3dGameData *_pGameData):
00039         K3dOpenGL(_pGameData),
00040         K3dStream(_pGameData),
00041         K3dIntersection(_pGameData),
00042         K3dMngGraphics(_pGameData),
00043         K3dMngGeometry(_pGameData),
00044         K3dMngControl(_pGameData)
00045 {
00046         cout << "K3dMngSystem::K3dMngSystem()" << endl;
00047         m_pGameData = _pGameData;
00048 }
00049 
00050 K3dMngSystem::~K3dMngSystem(void)
00051 {
00052 }
00053 
00054 void K3dMngSystem::LoadMngSystem()
00055 {
00056 }
00057 
00058 void K3dMngSystem::InitMngSystem()
00059 {
00060         cout << "void K3dMngSystem::InitMngSystem()" << endl;
00061         K3dString strMapFileName = m_pGameData->GetMapFileName();
00062         cout << "strMapFilename = " << strMapFileName.GetString() << endl;
00063         // Load ini file
00064         if(LoadIni(strMapFileName))
00065         {
00066                 cout << "LoadInit = OK"  << endl;       
00067                 // Initialize system
00068                 InitMngGraphics();
00069                 InitMngGeometry();
00070                 //InitMngGraphics();
00071                 InitMngControl();
00072         }
00073         else
00074         {
00075                 cerr << "Error -- K3dMngSystem::InitMngSystem() -- Error file " << strMapFileName.GetString() << " doesn`t loaded" << endl;
00076         }
00077 }
00078 
00079 void K3dMngSystem::UpdateMngSystem()
00080 {
00081         UpdateMngGeometry();
00082         UpdateMngGraphics();
00083 }
00084 
00085 void K3dMngSystem::DrawMngSystem()
00086 {
00087         DrawMngGeometry();
00088         DrawMngGraphics();
00089 }
00090 
00091 void K3dMngSystem::DeleteMngSystem()
00092 {
00093         DeleteMngGeometry();
00094         DeleteMngGraphics();
00095 }

Generated on Thu Aug 16 23:53:28 2007 for K3dEngine by  doxygen 1.5.0