-
Notifications
You must be signed in to change notification settings - Fork 280
/
fake_messages.cpp
43 lines (37 loc) · 1.01 KB
/
fake_messages.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
#include <cstddef>
#include <string>
#include <utility>
#include <vector>
#include "messages.h"
#include "enums.h"
class JsonObject;
class JsonOut;
namespace catacurses
{
class window;
} // namespace catacurses
/**
* Stubs to turn all Messages calls into no-ops for unit testing.
*/
std::vector<std::pair<std::string, std::string>> Messages::recent_messages( size_t )
{
return std::vector<std::pair<std::string, std::string>>();
}
void Messages::add_msg( std::string ) {}
void Messages::add_msg( const game_message_params &, std::string ) {}
void Messages::clear_messages() {}
void Messages::deactivate() {}
size_t Messages::size()
{
return 0;
}
bool Messages::has_undisplayed_messages()
{
return false;
}
void Messages::display_messages() {}
void Messages::display_messages( const catacurses::window &, int, int, int, int ) {}
void Messages::serialize( JsonOut & ) {}
void Messages::deserialize( const JsonObject & ) {}
void add_msg( std::string ) {}
void add_msg( const game_message_params &, std::string ) {}