forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
talker_monster.cpp
134 lines (109 loc) · 2.62 KB
/
talker_monster.cpp
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
#include <memory>
#include "character.h"
#include "effect.h"
#include "item.h"
#include "magic.h"
#include "monster.h"
#include "mtype.h"
#include "pimpl.h"
#include "point.h"
#include "talker_monster.h"
#include "vehicle.h"
class time_duration;
std::string talker_monster::disp_name() const
{
return me_mon->disp_name();
}
int talker_monster::posx() const
{
return me_mon->posx();
}
int talker_monster::posy() const
{
return me_mon->posy();
}
int talker_monster::posz() const
{
return me_mon->posz();
}
tripoint talker_monster::pos() const
{
return me_mon->pos();
}
tripoint_abs_omt talker_monster::global_omt_location() const
{
return me_mon->global_omt_location();
}
int talker_monster::pain_cur() const
{
return me_mon->get_pain();
}
bool talker_monster::has_effect( const efftype_id &effect_id, const bodypart_id &bp ) const
{
return me_mon->has_effect( effect_id, bp );
}
effect talker_monster::get_effect( const efftype_id &effect_id, const bodypart_id &bp ) const
{
return me_mon->get_effect( effect_id, bp );
}
void talker_monster::add_effect( const efftype_id &new_effect, const time_duration &dur,
std::string bp, bool permanent, bool force, int intensity )
{
me_mon->add_effect( new_effect, dur, bodypart_str_id( bp ), permanent, intensity, force );
}
void talker_monster::remove_effect( const efftype_id &old_effect )
{
me_mon->remove_effect( old_effect );
}
void talker_monster::mod_pain( int amount )
{
me_mon->mod_pain( amount );
}
std::string talker_monster:: get_value( const std::string &var_name ) const
{
return me_mon->get_value( var_name );
}
void talker_monster::set_value( const std::string &var_name, const std::string &value )
{
me_mon->set_value( var_name, value );
}
void talker_monster::remove_value( const std::string &var_name )
{
me_mon->remove_value( var_name );
}
std::string talker_monster::short_description() const
{
return me_mon->type->get_description();
}
int talker_monster::get_anger() const
{
return me_mon->anger;
}
void talker_monster::set_anger( int new_val )
{
me_mon->anger = new_val;
}
int talker_monster::morale_cur() const
{
return me_mon->morale;
}
void talker_monster::set_morale( int new_val )
{
me_mon->morale = new_val;
}
int talker_monster::get_friendly() const
{
return me_mon->friendly;
}
void talker_monster::set_friendly( int new_val )
{
me_mon->friendly = new_val;
}
std::vector<std::string> talker_monster::get_topics( bool )
{
return me_mon->type->chat_topics;
}
bool talker_monster::will_talk_to_u( const Character &you, bool )
{
return !you.is_dead_state();
}