The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
filter_context.hpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2014 - 2016 by Chris Beck <
[email protected]
>
3
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY.
11
12
See the COPYING file for more details.
13
*/
14
15
/**
16
*
17
* This class is an abstract base class which represents a display context
18
* (game map, units, and teams) together with a TOD manager. This, plus
19
* the game data (WML variables) and a lua kernel (currently a singleton)
20
* is sufficient to evaluate filters.
21
*
22
**/
23
24
#ifndef FILTER_CONTEXT_HPP_INCLUDED
25
#define FILTER_CONTEXT_HPP_INCLUDED
26
27
#include <vector>
28
29
class
display_context
;
30
class
tod_manager
;
31
class
game_data
;
32
class
game_lua_kernel
;
33
34
class
filter_context
{
35
public
:
36
// accessors
37
38
virtual
const
display_context
&
get_disp_context
()
const
= 0;
39
virtual
const
tod_manager
&
get_tod_man
()
const
= 0;
40
virtual
const
game_data
*
get_game_data
()
const
= 0;
41
virtual
game_lua_kernel
*
get_lua_kernel
()
const
= 0;
42
43
// Dtor
44
45
virtual
~filter_context
() {}
46
};
47
48
#endif
filter_context::get_disp_context
virtual const display_context & get_disp_context() const =0
filter_context::~filter_context
virtual ~filter_context()
Definition:
filter_context.hpp:45
game_lua_kernel
Definition:
game_lua_kernel.hpp:48
display_context
Definition:
display_context.hpp:52
tod_manager
Definition:
tod_manager.hpp:33
filter_context::get_tod_man
virtual const tod_manager & get_tod_man() const =0
game_data
Definition:
game_data.hpp:29
filter_context::get_game_data
virtual const game_data * get_game_data() const =0
filter_context
Definition:
filter_context.hpp:34
filter_context::get_lua_kernel
virtual game_lua_kernel * get_lua_kernel() const =0
Generated by
1.8.8