C++11 cleanup on constructors guiEngine (#6036)
* C++11 cleanup on constructors guiEngine
This commit is contained in:
parent
8a84e89922
commit
9da5fb1583
@ -45,14 +45,6 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/** TextDestGuiEngine */
|
|
||||||
/******************************************************************************/
|
|
||||||
TextDestGuiEngine::TextDestGuiEngine(GUIEngine* engine)
|
|
||||||
{
|
|
||||||
m_engine = engine;
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
void TextDestGuiEngine::gotText(const StringMap &fields)
|
void TextDestGuiEngine::gotText(const StringMap &fields)
|
||||||
{
|
{
|
||||||
@ -65,14 +57,6 @@ void TextDestGuiEngine::gotText(const std::wstring &text)
|
|||||||
m_engine->getScriptIface()->handleMainMenuEvent(wide_to_utf8(text));
|
m_engine->getScriptIface()->handleMainMenuEvent(wide_to_utf8(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
/** MenuTextureSource */
|
|
||||||
/******************************************************************************/
|
|
||||||
MenuTextureSource::MenuTextureSource(video::IVideoDriver *driver)
|
|
||||||
{
|
|
||||||
m_driver = driver;
|
|
||||||
}
|
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
MenuTextureSource::~MenuTextureSource()
|
MenuTextureSource::~MenuTextureSource()
|
||||||
{
|
{
|
||||||
|
@ -43,7 +43,7 @@ typedef enum {
|
|||||||
} texture_layer;
|
} texture_layer;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
video::ITexture* texture;
|
video::ITexture *texture = nullptr;
|
||||||
bool tile;
|
bool tile;
|
||||||
unsigned int minsize;
|
unsigned int minsize;
|
||||||
} image_definition;
|
} image_definition;
|
||||||
@ -68,7 +68,7 @@ public:
|
|||||||
* default constructor
|
* default constructor
|
||||||
* @param engine the engine data is transmitted for further processing
|
* @param engine the engine data is transmitted for further processing
|
||||||
*/
|
*/
|
||||||
TextDestGuiEngine(GUIEngine* engine);
|
TextDestGuiEngine(GUIEngine* engine) : m_engine(engine) {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* receive fields transmitted by guiFormSpecMenu
|
* receive fields transmitted by guiFormSpecMenu
|
||||||
@ -84,7 +84,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
/** target to transmit data to */
|
/** target to transmit data to */
|
||||||
GUIEngine* m_engine;
|
GUIEngine *m_engine = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** GUIEngine specific implementation of ISimpleTextureSource */
|
/** GUIEngine specific implementation of ISimpleTextureSource */
|
||||||
@ -95,7 +95,7 @@ public:
|
|||||||
* default constructor
|
* default constructor
|
||||||
* @param driver the video driver to load textures from
|
* @param driver the video driver to load textures from
|
||||||
*/
|
*/
|
||||||
MenuTextureSource(video::IVideoDriver *driver);
|
MenuTextureSource(video::IVideoDriver *driver) : m_driver(driver) {};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* destructor, removes all loaded textures
|
* destructor, removes all loaded textures
|
||||||
@ -111,7 +111,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
/** driver to get textures from */
|
/** driver to get textures from */
|
||||||
video::IVideoDriver *m_driver;
|
video::IVideoDriver *m_driver = nullptr;
|
||||||
/** set of texture names to delete */
|
/** set of texture names to delete */
|
||||||
std::set<std::string> m_to_delete;
|
std::set<std::string> m_to_delete;
|
||||||
};
|
};
|
||||||
@ -193,15 +193,15 @@ private:
|
|||||||
void updateTopLeftTextSize();
|
void updateTopLeftTextSize();
|
||||||
|
|
||||||
/** device to draw at */
|
/** device to draw at */
|
||||||
irr::IrrlichtDevice* m_device;
|
irr::IrrlichtDevice *m_device = nullptr;
|
||||||
/** parent gui element */
|
/** parent gui element */
|
||||||
gui::IGUIElement* m_parent;
|
gui::IGUIElement *m_parent = nullptr;
|
||||||
/** manager to add menus to */
|
/** manager to add menus to */
|
||||||
IMenuManager* m_menumanager;
|
IMenuManager *m_menumanager = nullptr;
|
||||||
/** scene manager to add scene elements to */
|
/** scene manager to add scene elements to */
|
||||||
scene::ISceneManager* m_smgr;
|
scene::ISceneManager *m_smgr = nullptr;
|
||||||
/** pointer to data beeing transfered back to main game handling */
|
/** pointer to data beeing transfered back to main game handling */
|
||||||
MainMenuData* m_data;
|
MainMenuData *m_data = nullptr;
|
||||||
/** pointer to texture source */
|
/** pointer to texture source */
|
||||||
ISimpleTextureSource *m_texture_source = nullptr;
|
ISimpleTextureSource *m_texture_source = nullptr;
|
||||||
/** pointer to soundmanager*/
|
/** pointer to soundmanager*/
|
||||||
@ -290,9 +290,9 @@ private:
|
|||||||
/** absolute time of last cloud processing */
|
/** absolute time of last cloud processing */
|
||||||
u32 lasttime;
|
u32 lasttime;
|
||||||
/** pointer to cloud class */
|
/** pointer to cloud class */
|
||||||
Clouds* clouds;
|
Clouds *clouds = nullptr;
|
||||||
/** camera required for drawing clouds */
|
/** camera required for drawing clouds */
|
||||||
scene::ICameraSceneNode* camera;
|
scene::ICameraSceneNode *camera = nullptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** is drawing of clouds enabled atm */
|
/** is drawing of clouds enabled atm */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user