The Battle for Wesnoth
1.19.5+dev
ai
composite
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
22
#include "
ai/composite/contexts.hpp
"
23
24
// =======================================================================
25
namespace
ai
{
26
27
ai_context_proxy::ai_context_proxy
()
28
: target_()
29
{
30
}
31
32
ai_context_proxy::~ai_context_proxy
()
33
{
34
}
35
36
bool
rca_context::is_offense_
=
false
;
37
bool
rca_context::is_defense_
=
false
;
38
bool
rca_context::strategy_set_
=
false
;
39
rca_context::rca_context
()
40
{
41
}
42
43
rca_context::~rca_context
()
44
{
45
}
46
47
rca_context_proxy::rca_context_proxy
()
48
: target_()
49
{
50
}
51
52
rca_context_proxy::~rca_context_proxy
()
53
{
54
}
55
56
}
//end of namespace ai
ai::ai_context_proxy::ai_context_proxy
ai_context_proxy()
Definition:
contexts.cpp:27
ai::ai_context_proxy::~ai_context_proxy
virtual ~ai_context_proxy()
Definition:
contexts.cpp:32
ai::rca_context_proxy::rca_context_proxy
rca_context_proxy()
Definition:
contexts.cpp:47
ai::rca_context_proxy::~rca_context_proxy
virtual ~rca_context_proxy()
Definition:
contexts.cpp:52
ai::rca_context::rca_context
rca_context()
Constructor.
Definition:
contexts.cpp:39
ai::rca_context::strategy_set_
static bool strategy_set_
Definition:
contexts.hpp:65
ai::rca_context::~rca_context
virtual ~rca_context()
Destructor.
Definition:
contexts.cpp:43
ai::rca_context::is_offense_
static bool is_offense_
Definition:
contexts.hpp:63
ai::rca_context::is_defense_
static bool is_defense_
Definition:
contexts.hpp:64
contexts.hpp
Composite AI contexts.
ai
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition:
actions.cpp:59
Generated by
1.9.1