The Battle for Wesnoth  1.19.5+dev
contexts.cpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2024
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
virtual ~rca_context_proxy()
Definition: contexts.cpp:52
rca_context()
Constructor.
Definition: contexts.cpp:39
static bool strategy_set_
Definition: contexts.hpp:65
virtual ~rca_context()
Destructor.
Definition: contexts.cpp:43
static bool is_offense_
Definition: contexts.hpp:63
static bool is_defense_
Definition: contexts.hpp:64
Composite AI contexts.
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition: actions.cpp:59