-
-
Notifications
You must be signed in to change notification settings - Fork 994
/
filter_context.hpp
48 lines (37 loc) · 1.27 KB
/
filter_context.hpp
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
/*
Copyright (C) 2014 by Chris Beck <render787@gmail.com>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY.
See the COPYING file for more details.
*/
/**
*
* This class is an abstract base class which represents a display context
* (game map, units, and teams) together with a TOD manager. This, plus
* the game data (WML variables) and a lua kernel (currently a singleton)
* is sufficient to evaluate filters.
*
**/
#ifndef FILTER_CONTEXT_HPP_INCLUDED
#define FILTER_CONTEXT_HPP_INCLUDED
#include <vector>
class display_context;
class tod_manager;
class game_data;
class game_lua_kernel;
class filter_context {
public:
// accessors
virtual const display_context & get_disp_context() const = 0;
virtual const tod_manager & get_tod_man() const = 0;
virtual const game_data * get_game_data() const = 0;
virtual game_lua_kernel * get_lua_kernel() const = 0;
// Dtor
virtual ~filter_context() {}
};
#endif