1 /***************************************************************************
2                           uscore.h  -  Game core plus graphics, sound and input
3                              -------------------
4     begin                : vr okt 15 2004
5     copyright            : (C) 2004 by CJP
6     email                : cornware-cjp@users.sourceforge.net
7  ***************************************************************************/
8 
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17 
18 #ifndef USCORE_H
19 #define USCORE_H
20 
21 #include "gamecore.h"
22 #include "timer.h"
23 
24 //Graphics stuff
25 #include "gamewinsystem.h"
26 #include "gamerenderer.h"
27 #include "gamecamera.h"
28 #include "console.h"
29 
30 //Sound stuff
31 #include "sound.h"
32 
33 /**
34   *@author CJP
35   */
36 
37 class CUSCore : public CGameCore  {
38 public:
39 	CUSCore(CGameWinSystem *winsys, CSound *soundsys);
40 	virtual ~CUSCore();
41 
42 	virtual bool reloadConfiguration();
43 
44 	bool addCamera(unsigned int objid);
45 
46 	virtual bool update(); //true = continue false = leave
47 
48 	virtual bool readyAndLoad(LoadStatusCallback callBackFun = NULL);
49 
50 	CGraphicWorld *getGraphicWorld();
51 
52 protected:
53 	CGameWinSystem *m_WinSys;
54 	CSound *m_SoundSystem;
55 	CGameRenderer *m_Renderer;
56 	CConsole *m_Console;
57 
58 	CGameCamera *m_Cameras[4]; //max. 4 cameras should be enough
59 	unsigned int m_NumCameras;
60 
61 	virtual void loadTrackData();
62 	virtual void loadMovObjData();
63 	virtual void unloadData();
64 };
65 
66 #endif
67