The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ai
composite
contexts.cpp
Go to the documentation of this file.
1
/*
2
Copyright (C) 2009 - 2016 by Yurii Chernyi <
[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
* 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
21
#include "
ai/composite/contexts.hpp
"
22
23
// =======================================================================
24
namespace
ai
{
25
26
ai_context_proxy::ai_context_proxy
()
27
: target_()
28
{
29
}
30
31
32
ai_context_proxy::~ai_context_proxy
()
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
;
40
rca_context::rca_context
()
41
{
42
}
43
44
45
rca_context::~rca_context
()
46
{
47
}
48
49
50
rca_context_proxy::rca_context_proxy
()
51
: target_()
52
{
53
}
54
55
56
rca_context_proxy::~rca_context_proxy
()
57
{
58
}
59
60
}
//end of namespace ai
ai::ai_context_proxy::~ai_context_proxy
virtual ~ai_context_proxy()
Definition:
contexts.cpp:32
ai::rca_context::strategy_set_
static bool strategy_set_
Definition:
contexts.hpp:79
ai::rca_context::is_defense_
static bool is_defense_
Definition:
contexts.hpp:78
ai
A small explanation about what's going on here: Each action has access to two game_info objects First...
Definition:
actions.cpp:57
ai::rca_context::is_offense_
static bool is_offense_
Definition:
contexts.hpp:77
ai::rca_context::~rca_context
virtual ~rca_context()
Destructor.
Definition:
contexts.cpp:45
ai::rca_context_proxy::~rca_context_proxy
virtual ~rca_context_proxy()
Definition:
contexts.cpp:56
ai::ai_context_proxy::ai_context_proxy
ai_context_proxy()
Definition:
contexts.cpp:26
contexts.hpp
Composite AI contexts.
ai::rca_context::rca_context
rca_context()
Constructor.
Definition:
contexts.cpp:40
ai::rca_context_proxy::rca_context_proxy
rca_context_proxy()
Definition:
contexts.cpp:50
Generated by
1.8.8