-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMythology.cpp
More file actions
106 lines (84 loc) · 1.87 KB
/
Mythology.cpp
File metadata and controls
106 lines (84 loc) · 1.87 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#pragma once
#ifndef WORLDSIM_MYTHOLOGY_CPP
#define WORLDSIM_MYTHOLOGY_CPP
/* WorldSim: Mythology
#include "Mythology.cpp"
Container for mythology of a group of Characters.
Each Civ may have a "State Mythology", however each Character can choose their own.
*/
#include "Mythology.hpp"
Mythology::Mythology()
{
world=0;
}
// Generate the base Dwarven mythology.
void Mythology::generateBaseDwarven()
{
std::cout<<"Generating base Dwarven mythology.\n";
race=DWARVEN;
type = Mythology::MYTHOLOGY_MONOTHEISTIC;
}
void Mythology::generateBaseElven()
{
std::cout<<"Generating base Elven mythology.\n";
}
void Mythology::generateBaseHuman()
{
std::cout<<"Generating base Human mythology.\n";
}
void Mythology::addDeity(std::string _name, Mythology_Deity::PERSONALITY _type)
{
}
// do some stuff
// Basically we just loop through every acting deity and let them do something.
void Mythology::increment()
{
for (int i=0;i<vDeity.size();++i)
{
vDeity(i)->act();
}
}
std::string Mythology::getType()
{
if (type == Mythology::MYTHOLOGY_MONOTHEISTIC)
{
return "Monotheistic";
}
//MYTHOLOGY_NONE, MYTHOLOGY_SPIRITUAL, MYTHOLOGY_MONOTHEISTIC, MYTHOLOGY_POLYTHEISTIC, MYTHOLOGY_PAGAN
return "<MYTH TYPE>";
}
std::string Mythology::getDescription()
{
return "<MYTH DESC>";
}
std::string Mythology::getColumn(std::string _column)
{
if (_column == "date")
{
return "<DATE>";
}
if (_column == "name")
{
return name;
}
else if (_column == "type")
{
return getType();
}
else if (_column == "description")
{
return getDescription();
}
// return eventDescription; // This might be a mistake; consider handling unknown columns
return "<UNKNOWN COLUMN>";
}
std::string Mythology::getColumnType(std::string _column)
{
// Placeholder for actual type handling
return "string";
}
std::string Mythology::getLongDescription()
{
return "<MYTHOLOGY DESC>";
}
#endif