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/Tutorial3/Tutorial3/src/GameClient.cpp

    r3276 r3369  
    106106 
    107107//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     108void 
     109GameClient::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//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
    108118bool 
    109119GameClient::init() 
     
    202212{ 
    203213    m_base.run(); 
     214} 
     215 
     216//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     217Zen::Engine::Widgets::I_WidgetService& 
     218GameClient::getWidgetService() 
     219{ 
     220    return m_base.getWidgetService(); 
     221} 
     222 
     223//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     224Zen::Engine::Rendering::I_RenderingCanvas& 
     225GameClient::getRenderingCanvas() 
     226{ 
     227    return m_base.getRenderingCanvas(); 
     228} 
     229 
     230//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     231bool 
     232GameClient::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//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     238bool 
     239GameClient::initTerrainService(const std::string& _type) 
     240{ 
     241    return m_base.initTerrainService(_type); 
     242} 
     243 
     244//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     245bool 
     246GameClient::initSkyService(const std::string& _type) 
     247{ 
     248    return m_base.initSkyService(_type); 
     249} 
     250 
     251//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     252bool 
     253GameClient::initInputService(const std::string& _type) 
     254{ 
     255    return m_base.initInputService(_type); 
     256} 
     257 
     258//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     259bool 
     260GameClient::initWidgetService(const std::string& _type) 
     261{ 
     262    return m_base.initWidgetService(_type); 
    204263} 
    205264