Changeset 3366

Show
Ignore:
Timestamp:
02/05/10 15:48:42 (5 weeks ago)
Author:
mgray
Message:

Refactoring I_GameClient interface.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Engine/branches/0185_GEN_PHYSICS_REFACTOR_2/Client/I_GameClient.hpp

    r3316 r3366  
    4242#include <Zen/Core/Event/Event.hpp> 
    4343 
    44 #include <Zen/Core/Scripting/I_ScriptableType.hpp> 
     44#include <Zen/Core/Scripting/I_ScriptableService.hpp> 
    4545#include <Zen/Core/Scripting/ObjectReference.hpp> 
    4646 
     
    6060namespace Zen { 
    6161namespace Engine { 
     62    namespace Rendering { 
     63        class I_RenderingCanvas; 
     64    }   // namespace Rendering 
     65    namespace Widgets { 
     66        class I_WidgetService; 
     67    }   // namespace Widgets 
    6268namespace Client { 
    6369//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ 
     
    6571/// Basic game client interface 
    6672class CLIENT_DLL_LINK I_GameClient 
    67 :   public virtual Zen::Scripting::I_ScriptableType 
     73:   public virtual Zen::Scripting::I_ScriptableService 
    6874,   public Memory::managed_self_ref<I_GameClient> 
    6975{ 
     
    8894    typedef Memory::managed_ptr<I_GameClient>           pScriptObject_type; 
    8995    typedef Scripting::ObjectReference<I_GameClient>    ScriptObjectReference_type; 
     96    typedef ScriptObjectReference_type                  ScriptWrapper_type; 
     97    typedef ScriptWrapper_type*                         pScriptWrapper_type; 
    9098    /// @} 
    9199 
     
    93101    /// @{ 
    94102public: 
    95     /// Get the window handle 
     103    /// Get the window handle. 
    96104    virtual const WindowHandle_type getHandle() const = 0; 
    97105 
    98     ///  
     106    /// Activate the script module for the game developer 
     107    /// script module. 
    99108    virtual void activateGameClientScriptModule() = 0; 
    100109 
    101     /// Initialize the Game Client 
     110    /// Initialize the Game Client. 
    102111    virtual bool init() = 0; 
    103112 
    104     /// Run the Game Client 
     113    /// Run the Game Client. 
    105114    virtual void run() = 0; 
     115 
     116    /// Get the widget service. 
     117    virtual Widgets::I_WidgetService& getWidgetService() = 0; 
     118 
     119    /// Get the current rendering canvas. 
     120    virtual Rendering::I_RenderingCanvas& getRenderingCanvas() = 0; 
     121 
     122    /// Initialize the rendering service. 
     123    virtual bool initRenderingService(const std::string& _type, const std::string& _title, int _xRes, int _yRes) = 0; 
     124 
     125    /// Initialize the terrain service. 
     126    virtual bool initTerrainService(const std::string& _type) = 0; 
     127 
     128    /// Initialize the sky service. 
     129    virtual bool initSkyService(const std::string& _type) = 0; 
     130 
     131    /// Initialize the input service. 
     132    virtual bool initInputService(const std::string& _type) = 0; 
     133 
     134    /// Initialize the widget service. 
     135    virtual bool initWidgetService(const std::string& _type) = 0; 
    106136    /// @} 
    107137