Show
Ignore:
Timestamp:
02/05/10 15:50:32 (6 months ago)
Author:
mgray
Message:

Updated tutorials to accomodate changes to I_GameClient interface refactor.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • tutorials/branches/0185_GEN_PHYSICS_REFACTOR_2/Tutorial4/Tutorial4/src/GameClient.cpp

    r3343 r3369  
    117117 
    118118//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     119void 
     120GameClient::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//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
    119129bool 
    120130GameClient::init() 
     
    223233{ 
    224234    m_baseClient.run(); 
     235} 
     236 
     237//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     238Zen::Engine::Widgets::I_WidgetService& 
     239GameClient::getWidgetService() 
     240{ 
     241    return m_baseClient.getWidgetService(); 
     242} 
     243 
     244//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     245Zen::Engine::Rendering::I_RenderingCanvas& 
     246GameClient::getRenderingCanvas() 
     247{ 
     248    return m_baseClient.getRenderingCanvas(); 
     249} 
     250 
     251//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     252bool 
     253GameClient::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//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     259bool 
     260GameClient::initTerrainService(const std::string& _type) 
     261{ 
     262    return m_baseClient.initTerrainService(_type); 
     263} 
     264 
     265//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     266bool 
     267GameClient::initSkyService(const std::string& _type) 
     268{ 
     269    return m_baseClient.initSkyService(_type); 
     270} 
     271 
     272//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     273bool 
     274GameClient::initInputService(const std::string& _type) 
     275{ 
     276    return m_baseClient.initInputService(_type); 
     277} 
     278 
     279//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     280bool 
     281GameClient::initWidgetService(const std::string& _type) 
     282{ 
     283    return m_baseClient.initWidgetService(_type); 
    225284} 
    226285