comparison engine/core/controller/engine.i @ 0:4a0efb7baf70

* Datasets becomes the new trunk and retires after that :-)
author mvbarracuda@33b003aa-7bff-0310-803a-e67f0ece8222
date Sun, 29 Jun 2008 18:44:17 +0000
parents
children 90005975cdbb
comparison
equal deleted inserted replaced
-1:000000000000 0:4a0efb7baf70
1 /***************************************************************************
2 * Copyright (C) 2005-2008 by the FIFE team *
3 * http://www.fifengine.de *
4 * This file is part of FIFE. *
5 * *
6 * FIFE is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
20 ***************************************************************************/
21 %module fife
22 %{
23 #include "controller/engine.h"
24 %}
25
26 namespace FIFE {
27
28 class SoundManager;
29 class EventManager;
30 class TimeManager;
31 class GUIManager;
32 class ImagePool;
33 class AnimationPool;
34 class SoundClipPool;
35 class RenderBackend;
36 class View;
37 class Model;
38 class LogManager;
39 class GuiFont;
40 class VFS;
41 class Cursor;
42
43 class EngineSettings {
44 public:
45 ~EngineSettings();
46 void validate() const;
47 void setBitsPerPixel(unsigned int bitsperpixel);
48 unsigned int getBitsPerPixel() const;
49 std::vector<unsigned int> getPossibleBitsPerPixel() const;
50 void setFullScreen(bool fullscreen);
51 bool isFullScreen() const;
52 void setInitialVolume(float volume);
53 float getInitialVolume() const;
54 float getMaxVolume() const;
55 void setRenderBackend(const std::string& renderbackend);
56 const std::string getRenderBackend() const;
57 std::vector<std::string> getPossibleRenderBackends();
58 void setSDLRemoveFakeAlpha(bool sldremovefakealpha);
59 bool isSDLRemoveFakeAlpha(bool sldremovefakealpha) const;
60 void setScreenWidth(unsigned int screenwidth);
61 unsigned int getScreenWidth() const;
62 void setScreenHeight(unsigned int screenheight);
63 unsigned int getScreenHeight() const;
64 void setDefaultFontPath(const std::string& defaultfontpath);
65 std::string getDefaultFontPath() const;
66 void setDefaultFontSize(const unsigned int defaultfontsize);
67 unsigned int getDefaultFontSize() const;
68 void setDefaultFontGlyphs(const std::string& defaultfontglyphs);
69 std::string getDefaultFontGlyphs() const;
70 void setImageChunkingSize(unsigned int size);
71 unsigned int getImageChunkingSize();
72
73 private:
74 EngineSettings();
75 };
76
77 class Engine {
78 public:
79 Engine();
80 virtual ~Engine();
81 void initializePumping();
82 void finalizePumping();
83 void pump();
84
85 EngineSettings& getSettings();
86 void init();
87
88 SoundManager* getSoundManager();
89 EventManager* getEventManager();
90 TimeManager* getTimeManager();
91 GUIManager* getGuiManager();
92 ImagePool* getImagePool();
93 AnimationPool* getAnimationPool();
94 SoundClipPool* getSoundClipPool();
95 RenderBackend* getRenderBackend();
96 View* getView();
97 Model* getModel();
98 LogManager* getLogManager();
99 GuiFont* getDefaultFont();
100 VFS* getVFS();
101 Cursor* getCursor();
102 };
103 }