forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
talker_furniture.h
53 lines (45 loc) · 1.43 KB
/
talker_furniture.h
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
#pragma once
#ifndef CATA_SRC_TALKER_FURNITURE_H
#define CATA_SRC_TALKER_FURNITURE_H
#include <functional>
#include <iosfwd>
#include <list>
#include <vector>
#include "coordinates.h"
#include "npc.h"
#include "talker.h"
#include "type_id.h"
class computer;
struct tripoint;
/*
* Talker wrapper class for furniture
*/
class talker_furniture: public talker
{
public:
explicit talker_furniture( computer *new_me ): me_comp( new_me ) {
}
~talker_furniture() override = default;
computer *get_computer() override {
return me_comp;
}
computer *get_computer() const override {
return me_comp;
}
// identity and location
std::string disp_name() const override;
int posx() const override;
int posy() const override;
int posz() const override;
tripoint pos() const override;
tripoint_abs_omt global_omt_location() const override;
std::string get_value( const std::string &var_name ) const override;
void set_value( const std::string &var_name, const std::string &value ) override;
void remove_value( const std::string & ) override;
std::vector<std::string> get_topics( bool radio_contact ) override;
bool will_talk_to_u( const Character &you, bool force ) override;
protected:
talker_furniture() = default;
computer *me_comp;
};
#endif // CATA_SRC_TALKER_FURNITURE_H