The Battle for Wesnoth  1.17.0-dev
contexts.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2021
3  by Yurii Chernyi <terraninfo@terraninfo.net>
4  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY.
12 
13  See the COPYING file for more details.
14 */
15 
16 /**
17  * Helper functions for the object which operates in the context of AI for specific side
18  * This is part of AI interface
19  * @file
20  */
21 
23 
24 // =======================================================================
25 namespace ai {
26 
28  : target_()
29 {
30 }
31 
33 {
34 }
35 
36 bool rca_context::is_offense_ = false;
37 bool rca_context::is_defense_ = false;
38 bool rca_context::strategy_set_ = false;
40 {
41 }
42 
44 {
45 }
46 
48  : target_()
49 {
50 }
51 
53 {
54 }
55 
56 } //end of namespace ai
virtual ~ai_context_proxy()
Definition: contexts.cpp:32
static bool strategy_set_
Definition: contexts.hpp:66
static bool is_defense_
Definition: contexts.hpp:65
A small explanation about what&#39;s going on here: Each action has access to two game_info objects First...
Definition: actions.cpp:61
static bool is_offense_
Definition: contexts.hpp:64
virtual ~rca_context()
Destructor.
Definition: contexts.cpp:43
virtual ~rca_context_proxy()
Definition: contexts.cpp:52
ai_context * target_
Definition: contexts.hpp:108
Composite AI contexts.
rca_context()
Constructor.
Definition: contexts.cpp:39