This repository was archived by the owner on Sep 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
64 lines (56 loc) · 1.46 KB
/
Copy pathmain.cpp
File metadata and controls
64 lines (56 loc) · 1.46 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
60
61
62
63
64
#include <iostream>
#include <stdexcept>
#include "GameEngine.hpp"
#include "csout.hpp"
using namespace Taverner;
int main(int argc, char* argv[])
{
try
{
GameEngine SUD;
SUD.Run();
}
catch(...)
{
return 1;
}
return 0;
}
//TODO:
//3) Implement taking items.
//4) Implement monsters and fight
//5) Add bounds to the map, so we aren't travelling off-map.
//Regex template:
// .*go(\s+.+\s+|\s+)north.*/i
//
//Creature dialogue_newchar()
//{
// std::string name;
// std::cout <<"Choose the name for your character: ";
// //Somehow, Dialogue would make getline not triggered.
// std::cin.ignore();
//
// std::getline(std::cin, name);
// int result = Dialogue("Choose your class.",
// {"Warrior", "Rogue", "Wizard", "Priest"}).activate();
// switch(result)
// {
// case 1:
// return Creature(name, 100, 10, 3, 5, 3, 9, "Warrior");
// break;
// case 2:
// return Creature(name, 100, 7, 4, 10, 3, 5, "Rogue");
// break;
// case 3:
// return Creature(name, 100, 3, 10, 5, 7, 4, "Wizard");
// break;
// case 4:
// return Creature(name, 100, 3, 7, 4, 10, 5, "Priest");
// break;
// default:
// std::string error = "Reached default clausule in switch where this shouldn't be the case. Function: dialogue_newchar. ";
// std::cout << result << std::endl;
// throw(std::runtime_error(error));
// }
//
//}