-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
59 lines (44 loc) · 1.97 KB
/
main.cpp
File metadata and controls
59 lines (44 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*Copywrite 2014 Shaun Bond, Jeffery Waldon, Charlie Carlson, Simon Smith, Joseph DeWilde, Aaron Andrews*/
/*This file is part of Dina'ki Adventures.
Dina'ki Adventures is free software : you can redistribute it and / or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Dina'ki Adventures is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Dina'ki Adventures. If not, see <http://www.gnu.org/licenses/>.*/
// main.cpp
//#define SFML_STATIC
#include "compile.h"
#include "controller.h"
#include "mapcontroller.h"
#include "basicscreen.h"
#include "profilecontroller.h"
#include "interface.h"
#include "map.h"
#include "screen.h"
#include <vector>
#if defined (__clang__) || defined (_MSC_VER)
#include <codecvt>
#endif
int main()
{
//setlocale(LC_ALL, "en_US.UTF-8");
//std::locale loc (std::locale(), new std::codecvt_utf8<char32_t>);
//std::locale::global(loc);
//setlocale(LC_ALL, loc.name().c_str());
//std::cout << loc.name() << std::endl;
#if defined (__GNUG__) || defined (__clang__)
//setlocale(LC_ALL, "en_US.UTF-8");
#endif
//setlocale(LC_ALL,std::locale(fin.getloc(),new std::codecvt_utf16<wchar_t, 0xffff, std::consume_header>));
std::shared_ptr<MasterController> game_controller(new MasterController);
std::shared_ptr<Screen> profile_page(new BasicScreen("Dummy", nullptr, "dummy_extension"));
std::shared_ptr<ProfileController> profile_controller(new ProfileController(game_controller->getProfileWranlger(), game_controller->getProfile(), game_controller->getInterface(), game_controller, profile_page));
game_controller->push_controller(profile_controller);
game_controller->controlLoop();
return 0;
}