Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::Plugin< T > Class Template Reference

This class is a base class for plugin which will be used in KGE. More...

#include <Plugin.h>

Inheritance diagram for kge::Plugin< T >:
kge::plugin::VideoManager

Public Member Functions

 Plugin ()
 Constructor.
virtual ~Plugin ()
 Destructor.
PluginType GetPluginType ()
 Returns plugin type.
int GetEngineMajorVersion ()
 Returns the engine major version that plugin compiled with.
int GetEngineMinorVersion ()
 Returns the engine minor version that plugin compiled with.
int GetEnginePatchVersion ()
 Returns the engine release version that plugin compiled with.
virtual T * Create ()=0
 Create the plugin.

Protected Attributes

PluginType m_ePluginType
 Plugin type.

Detailed Description

template<typename T>
class kge::Plugin< T >

This class is a base class for plugin which will be used in KGE.

Definition at line 25 of file Plugin.h.

Constructor & Destructor Documentation

template<typename T >
kge::Plugin< T >::Plugin ( )
inline

Constructor.

Definition at line 30 of file Plugin.h.

template<typename T >
virtual kge::Plugin< T >::~Plugin ( )
inlinevirtual

Destructor.

Definition at line 33 of file Plugin.h.

Member Function Documentation

template<typename T >
virtual T* kge::Plugin< T >::Create ( )
pure virtual

Create the plugin.

template<typename T >
int kge::Plugin< T >::GetEngineMajorVersion ( )
inline

Returns the engine major version that plugin compiled with.

Definition at line 39 of file Plugin.h.

References KGE_VERSION_MAJOR.

template<typename T >
int kge::Plugin< T >::GetEngineMinorVersion ( )
inline

Returns the engine minor version that plugin compiled with.

Definition at line 42 of file Plugin.h.

References KGE_VERSION_MINOR.

template<typename T >
int kge::Plugin< T >::GetEnginePatchVersion ( )
inline

Returns the engine release version that plugin compiled with.

Definition at line 45 of file Plugin.h.

References KGE_VERSION_RELEASE.

template<typename T >
PluginType kge::Plugin< T >::GetPluginType ( )
inline

Returns plugin type.

Definition at line 36 of file Plugin.h.

References kge::Plugin< T >::m_ePluginType.

Member Data Documentation

template<typename T >
PluginType kge::Plugin< T >::m_ePluginType
protected

Plugin type.

Definition at line 51 of file Plugin.h.

Referenced by kge::Plugin< T >::GetPluginType().


The documentation for this class was generated from the following file: