The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
contexts.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2017 by Yurii Chernyi <terraninfo@terraninfo.net>
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  * Helper functions for the object which operates in the context of AI for specific side
17  * This is part of AI interface
18  * @file
19  */
20 
22 
23 // =======================================================================
24 namespace ai {
25 
27  : target_()
28 {
29 }
30 
31 
33 {
34 }
35 
36 
37 bool rca_context::is_offense_ = false;
38 bool rca_context::is_defense_ = false;
39 bool rca_context::strategy_set_ = false;
41 {
42 }
43 
44 
46 {
47 }
48 
49 
51  : target_()
52 {
53 }
54 
55 
57 {
58 }
59 
60 } //end of namespace ai
virtual ~ai_context_proxy()
Definition: contexts.cpp:32
static bool strategy_set_
Definition: contexts.hpp:78
static bool is_defense_
Definition: contexts.hpp:77
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition: actions.cpp:58
static bool is_offense_
Definition: contexts.hpp:76
virtual ~rca_context()
Destructor.
Definition: contexts.cpp:45
virtual ~rca_context_proxy()
Definition: contexts.cpp:56
Composite AI contexts.
rca_context()
Constructor.
Definition: contexts.cpp:40