Changeset 3369
- Timestamp:
- 02/05/10 15:50:32 (6 weeks ago)
- Location:
- tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2
- Files:
-
- 10 modified
-
Tutorial1/Tutorial1/src/GameClient.cpp (modified) (2 diffs)
-
Tutorial1/Tutorial1/src/GameClient.hpp (modified) (2 diffs)
-
Tutorial2/Tutorial2/src/GameClient.cpp (modified) (2 diffs)
-
Tutorial2/Tutorial2/src/GameClient.hpp (modified) (2 diffs)
-
Tutorial3/Tutorial3/src/GameClient.cpp (modified) (2 diffs)
-
Tutorial3/Tutorial3/src/GameClient.hpp (modified) (2 diffs)
-
Tutorial4/Tutorial4/src/GameClient.cpp (modified) (2 diffs)
-
Tutorial4/Tutorial4/src/GameClient.hpp (modified) (2 diffs)
-
Tutorial5/Tutorial5/src/GameClient.cpp (modified) (2 diffs)
-
Tutorial5/Tutorial5/src/GameClient.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial1/Tutorial1/src/GameClient.cpp
r3276 r3369 98 98 { 99 99 return m_pScriptObject; 100 } 101 102 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 103 void 104 GameClient::registerScriptEngine(pScriptEngine_type _pScriptEngine) 105 { 106 // This isn't really used with the Base Starter kit since ZGameLoader 107 // registers the script engine with the BaseGameClient. 108 109 // Just ignore this method. 100 110 } 101 111 … … 150 160 } 151 161 162 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 163 Zen::Engine::Widgets::I_WidgetService& 164 GameClient::getWidgetService() 165 { 166 return m_base.getWidgetService(); 167 } 168 169 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 170 Zen::Engine::Rendering::I_RenderingCanvas& 171 GameClient::getRenderingCanvas() 172 { 173 return m_base.getRenderingCanvas(); 174 } 175 176 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 177 bool 178 GameClient::initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) 179 { 180 return m_base.initRenderingService(_type, _title, _xRes, _yRes); 181 } 182 183 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 184 bool 185 GameClient::initTerrainService(const std::string& _type) 186 { 187 return m_base.initTerrainService(_type); 188 } 189 190 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 191 bool 192 GameClient::initSkyService(const std::string& _type) 193 { 194 return m_base.initSkyService(_type); 195 } 196 197 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 198 bool 199 GameClient::initInputService(const std::string& _type) 200 { 201 return m_base.initInputService(_type); 202 } 203 204 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 205 bool 206 GameClient::initWidgetService(const std::string& _type) 207 { 208 return m_base.initWidgetService(_type); 209 } 152 210 153 211 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial1/Tutorial1/src/GameClient.hpp
r3276 r3369 68 68 virtual const WindowHandle_type getHandle() const; 69 69 virtual void activateGameClientScriptModule(); 70 virtual Zen::Engine::Widgets::I_WidgetService& getWidgetService(); 71 virtual Zen::Engine::Rendering::I_RenderingCanvas& getRenderingCanvas(); 72 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes); 73 virtual bool initTerrainService(const std::string& _type); 74 virtual bool initSkyService(const std::string& _type); 75 virtual bool initInputService(const std::string& _type); 76 virtual bool initWidgetService(const std::string& _type); 70 77 virtual bool init(); 71 78 virtual void run(); … … 76 83 public: 77 84 virtual Zen::Scripting::I_ObjectReference* getScriptObject(); 85 /// @} 86 87 /// @name I_ScriptableService implementation. 88 /// @{ 89 public: 90 virtual void registerScriptEngine(pScriptEngine_type _pScriptEngine); 78 91 /// @} 79 92 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial2/Tutorial2/src/GameClient.cpp
r3276 r3369 107 107 108 108 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 109 void 110 GameClient::registerScriptEngine(pScriptEngine_type _pScriptEngine) 111 { 112 // This isn't really used with the Base Starter kit since ZGameLoader 113 // registers the script engine with the BaseGameClient. 114 115 // Just ignore this method. 116 } 117 118 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 109 119 bool 110 120 GameClient::init() … … 186 196 187 197 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 198 Zen::Engine::Widgets::I_WidgetService& 199 GameClient::getWidgetService() 200 { 201 return m_base.getWidgetService(); 202 } 203 204 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 205 Zen::Engine::Rendering::I_RenderingCanvas& 206 GameClient::getRenderingCanvas() 207 { 208 return m_base.getRenderingCanvas(); 209 } 210 211 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 212 bool 213 GameClient::initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) 214 { 215 return m_base.initRenderingService(_type, _title, _xRes, _yRes); 216 } 217 218 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 219 bool 220 GameClient::initTerrainService(const std::string& _type) 221 { 222 return m_base.initTerrainService(_type); 223 } 224 225 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 226 bool 227 GameClient::initSkyService(const std::string& _type) 228 { 229 return m_base.initSkyService(_type); 230 } 231 232 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 233 bool 234 GameClient::initInputService(const std::string& _type) 235 { 236 return m_base.initInputService(_type); 237 } 238 239 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 240 bool 241 GameClient::initWidgetService(const std::string& _type) 242 { 243 return m_base.initWidgetService(_type); 244 } 245 246 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 188 247 void 189 248 GameClient::activateGameClientScriptModule() -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial2/Tutorial2/src/GameClient.hpp
r3276 r3369 70 70 virtual const WindowHandle_type getHandle() const; 71 71 virtual void activateGameClientScriptModule(); 72 virtual Zen::Engine::Widgets::I_WidgetService& getWidgetService(); 73 virtual Zen::Engine::Rendering::I_RenderingCanvas& getRenderingCanvas(); 74 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes); 75 virtual bool initTerrainService(const std::string& _type); 76 virtual bool initSkyService(const std::string& _type); 77 virtual bool initInputService(const std::string& _type); 78 virtual bool initWidgetService(const std::string& _type); 72 79 virtual bool init(); 73 80 virtual void run(); … … 78 85 public: 79 86 virtual Zen::Scripting::I_ObjectReference* getScriptObject(); 87 /// @} 88 89 /// @name I_ScriptableService implementation. 90 /// @{ 91 public: 92 virtual void registerScriptEngine(pScriptEngine_type _pScriptEngine); 80 93 /// @} 81 94 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial3/Tutorial3/src/GameClient.cpp
r3276 r3369 106 106 107 107 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 108 void 109 GameClient::registerScriptEngine(pScriptEngine_type _pScriptEngine) 110 { 111 // This isn't really used with the Base Starter kit since ZGameLoader 112 // registers the script engine with the BaseGameClient. 113 114 // Just ignore this method. 115 } 116 117 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 108 118 bool 109 119 GameClient::init() … … 202 212 { 203 213 m_base.run(); 214 } 215 216 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 217 Zen::Engine::Widgets::I_WidgetService& 218 GameClient::getWidgetService() 219 { 220 return m_base.getWidgetService(); 221 } 222 223 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 224 Zen::Engine::Rendering::I_RenderingCanvas& 225 GameClient::getRenderingCanvas() 226 { 227 return m_base.getRenderingCanvas(); 228 } 229 230 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 231 bool 232 GameClient::initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) 233 { 234 return m_base.initRenderingService(_type, _title, _xRes, _yRes); 235 } 236 237 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 238 bool 239 GameClient::initTerrainService(const std::string& _type) 240 { 241 return m_base.initTerrainService(_type); 242 } 243 244 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 245 bool 246 GameClient::initSkyService(const std::string& _type) 247 { 248 return m_base.initSkyService(_type); 249 } 250 251 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 252 bool 253 GameClient::initInputService(const std::string& _type) 254 { 255 return m_base.initInputService(_type); 256 } 257 258 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 259 bool 260 GameClient::initWidgetService(const std::string& _type) 261 { 262 return m_base.initWidgetService(_type); 204 263 } 205 264 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial3/Tutorial3/src/GameClient.hpp
r3276 r3369 72 72 virtual const WindowHandle_type getHandle() const; 73 73 virtual void activateGameClientScriptModule(); 74 virtual Zen::Engine::Widgets::I_WidgetService& getWidgetService(); 75 virtual Zen::Engine::Rendering::I_RenderingCanvas& getRenderingCanvas(); 76 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes); 77 virtual bool initTerrainService(const std::string& _type); 78 virtual bool initSkyService(const std::string& _type); 79 virtual bool initInputService(const std::string& _type); 80 virtual bool initWidgetService(const std::string& _type); 74 81 virtual bool init(); 75 82 virtual void run(); … … 80 87 public: 81 88 virtual Zen::Scripting::I_ObjectReference* getScriptObject(); 89 /// @} 90 91 /// @name I_ScriptableService implementation. 92 /// @{ 93 public: 94 virtual void registerScriptEngine(pScriptEngine_type _pScriptEngine); 82 95 /// @} 83 96 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial4/Tutorial4/src/GameClient.cpp
r3343 r3369 117 117 118 118 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 119 void 120 GameClient::registerScriptEngine(pScriptEngine_type _pScriptEngine) 121 { 122 // This isn't really used with the Base Starter kit since ZGameLoader 123 // registers the script engine with the BaseGameClient. 124 125 // Just ignore this method. 126 } 127 128 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 119 129 bool 120 130 GameClient::init() … … 223 233 { 224 234 m_baseClient.run(); 235 } 236 237 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 238 Zen::Engine::Widgets::I_WidgetService& 239 GameClient::getWidgetService() 240 { 241 return m_baseClient.getWidgetService(); 242 } 243 244 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 245 Zen::Engine::Rendering::I_RenderingCanvas& 246 GameClient::getRenderingCanvas() 247 { 248 return m_baseClient.getRenderingCanvas(); 249 } 250 251 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 252 bool 253 GameClient::initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) 254 { 255 return m_baseClient.initRenderingService(_type, _title, _xRes, _yRes); 256 } 257 258 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 259 bool 260 GameClient::initTerrainService(const std::string& _type) 261 { 262 return m_baseClient.initTerrainService(_type); 263 } 264 265 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 266 bool 267 GameClient::initSkyService(const std::string& _type) 268 { 269 return m_baseClient.initSkyService(_type); 270 } 271 272 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 273 bool 274 GameClient::initInputService(const std::string& _type) 275 { 276 return m_baseClient.initInputService(_type); 277 } 278 279 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 280 bool 281 GameClient::initWidgetService(const std::string& _type) 282 { 283 return m_baseClient.initWidgetService(_type); 225 284 } 226 285 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial4/Tutorial4/src/GameClient.hpp
r3276 r3369 76 76 virtual const WindowHandle_type getHandle() const; 77 77 virtual void activateGameClientScriptModule(); 78 virtual Zen::Engine::Widgets::I_WidgetService& getWidgetService(); 79 virtual Zen::Engine::Rendering::I_RenderingCanvas& getRenderingCanvas(); 80 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes); 81 virtual bool initTerrainService(const std::string& _type); 82 virtual bool initSkyService(const std::string& _type); 83 virtual bool initInputService(const std::string& _type); 84 virtual bool initWidgetService(const std::string& _type); 78 85 virtual bool init(); 79 86 virtual void run(); … … 84 91 public: 85 92 virtual Zen::Scripting::I_ObjectReference* getScriptObject(); 93 /// @} 94 95 /// @name I_ScriptableService implementation. 96 /// @{ 97 public: 98 virtual void registerScriptEngine(pScriptEngine_type _pScriptEngine); 86 99 /// @} 87 100 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial5/Tutorial5/src/GameClient.cpp
r3276 r3369 113 113 114 114 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 115 void 116 GameClient::registerScriptEngine(pScriptEngine_type _pScriptEngine) 117 { 118 // This isn't really used with the Base Starter kit since ZGameLoader 119 // registers the script engine with the BaseGameClient. 120 121 // Just ignore this method. 122 } 123 124 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 115 125 bool 116 126 GameClient::init() … … 198 208 { 199 209 m_baseClient.run(); 210 } 211 212 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 213 Zen::Engine::Widgets::I_WidgetService& 214 GameClient::getWidgetService() 215 { 216 return m_baseClient.getWidgetService(); 217 } 218 219 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 220 Zen::Engine::Rendering::I_RenderingCanvas& 221 GameClient::getRenderingCanvas() 222 { 223 return m_baseClient.getRenderingCanvas(); 224 } 225 226 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 227 bool 228 GameClient::initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) 229 { 230 return m_baseClient.initRenderingService(_type, _title, _xRes, _yRes); 231 } 232 233 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 234 bool 235 GameClient::initTerrainService(const std::string& _type) 236 { 237 return m_baseClient.initTerrainService(_type); 238 } 239 240 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 241 bool 242 GameClient::initSkyService(const std::string& _type) 243 { 244 return m_baseClient.initSkyService(_type); 245 } 246 247 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 248 bool 249 GameClient::initInputService(const std::string& _type) 250 { 251 return m_baseClient.initInputService(_type); 252 } 253 254 //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 255 bool 256 GameClient::initWidgetService(const std::string& _type) 257 { 258 return m_baseClient.initWidgetService(_type); 200 259 } 201 260 -
tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial5/Tutorial5/src/GameClient.hpp
r3276 r3369 74 74 virtual const WindowHandle_type getHandle() const; 75 75 virtual void activateGameClientScriptModule(); 76 virtual Zen::Engine::Widgets::I_WidgetService& getWidgetService(); 77 virtual Zen::Engine::Rendering::I_RenderingCanvas& getRenderingCanvas(); 78 virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes); 79 virtual bool initTerrainService(const std::string& _type); 80 virtual bool initSkyService(const std::string& _type); 81 virtual bool initInputService(const std::string& _type); 82 virtual bool initWidgetService(const std::string& _type); 76 83 virtual bool init(); 77 84 virtual void run(); … … 82 89 public: 83 90 virtual Zen::Scripting::I_ObjectReference* getScriptObject(); 91 /// @} 92 93 /// @name I_ScriptableService implementation. 94 /// @{ 95 public: 96 virtual void registerScriptEngine(pScriptEngine_type _pScriptEngine); 84 97 /// @} 85 98
