00001 00013 /*************************************************************************** 00014 * Copyright (C) 2007 by Jan Koci * 00015 * honza.koci@email.cz * 00016 * http://kengine.sourceforge.net/tutorial/ 00017 * * 00018 * This program is free software; you can redistribute it and/or modify * 00019 * it under the terms of the GNU General Public License as published by * 00020 * the Free Software Foundation; either version 2 of the License, or * 00021 * (at your option) any later version. * 00022 * * 00023 * This program is distributed in the hope that it will be useful, * 00024 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00025 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00026 * GNU General Public License for more details. * 00027 * * 00028 * You should have received a copy of the GNU General Public License * 00029 * along with this program; if not, write to the * 00030 * Free Software Foundation, Inc., * 00031 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00032 ***************************************************************************/ 00033 00034 00035 #pragma once 00036 00037 #include "../Control/K3dKeyboard.h" 00038 #include "../Control/K3dMouse.h" 00039 #include "../System/Manager/K3dMngSystem.h" 00040 #include "../System/K3dOptions.h" 00041 #include "../System/K3dDefines.h" 00042 #include "../Graphics/K3dTextureObj.h" 00043 #include "../Script/K3dVM.h" 00044 00045 class K3dScene : 00046 public K3dTimer, 00047 public K3dKeyMap, 00048 public K3dMouse, 00049 public K3dLua, 00050 public K3dMngSystem, 00051 public K3dOptions 00052 { 00053 K3dGameData *m_pGameData; 00054 char *m_pArgumentArray[]; 00055 int m_iNumArguments; 00056 bool m_bIsExit; 00057 K3dMatrix *m_pViewMatrix; 00058 public: 00059 K3dScene ( K3dGameData *_pGameData, int _argc, char *_argv[] ); 00060 ~K3dScene(); 00061 00062 void SetScenePaths(); 00063 void CheckArguments(); 00064 void Init(); 00065 void LoadNewScript ( const char * _strFilename ); 00066 void Load ( K3dString& _strFilename ); 00067 void Delete(); 00068 void Update(); 00069 void Draw(); 00070 bool &GetExit() 00071 { 00072 return m_bIsExit; 00073 } 00074 }; 00075