World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
IocContainer.cpp
См. документацию.
1
#include "
src/Application/IocContainer.h
"
2
3
#include "
src/Application/GameMenu.h
"
4
#include "
src/Application/GameWindowHandler.h
"
5
6
7
using
Application::IocContainer
;
8
using
Application::Menu
;
9
using
Application::GameWindowHandler
;
10
11
12
Menu
*IocContainer::menu =
nullptr
;
13
Menu
*IocContainer::ResolveGameMenu() {
14
if
(!
menu
) {
15
menu
=
new
Menu
();
16
}
17
return
menu
;
18
}
19
20
GameWindowHandler
*
IocContainer::gameWindowHandler
=
nullptr
;
21
GameWindowHandler
*
IocContainer::ResolveGameWindowHandler
() {
22
if
(!
gameWindowHandler
) {
23
gameWindowHandler
=
new
GameWindowHandler
();
24
}
25
return
gameWindowHandler
;
26
}
IocContainer.h
Application::IocContainer::menu
static Menu * menu
Definition:
IocContainer.h:14
GameWindowHandler.h
Application::Menu
Definition:
GameMenu.h:9
GameMenu.h
Application::GameWindowHandler
Definition:
GameWindowHandler.h:8
Application::IocContainer
Definition:
IocContainer.h:8
Application::IocContainer::ResolveGameWindowHandler
static GameWindowHandler * ResolveGameWindowHandler()
Definition:
IocContainer.cpp:21
Application::IocContainer::gameWindowHandler
static GameWindowHandler * gameWindowHandler
Definition:
IocContainer.h:15
src
Application
IocContainer.cpp
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:30. Создано системой
1.8.17