Fawkes API
Fawkes Development Version
skiller_navgraph_feature.h
1
/***************************************************************************
2
* skiller_navgraph_thread.h - Optional skiller access to navgraph
3
*
4
* Created: Wed Jul 16 13:01:06 2014 (on flight to Joao Pessoa)
5
* Copyright 2014 Tim Niemueller [www.niemueller.de]
6
****************************************************************************/
7
8
/* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU Library General Public License for more details.
17
*
18
* Read the full text in the LICENSE.GPL file in the doc directory.
19
*/
20
21
#ifndef _PLUGINS_SKILLER_SKILLER_NAVGRAPH_FEATURE_H_
22
#define _PLUGINS_SKILLER_SKILLER_NAVGRAPH_FEATURE_H_
23
24
#include "skiller_feature.h"
25
26
#include <aspect/configurable.h>
27
#include <aspect/logging.h>
28
#include <core/threading/thread.h>
29
#include <navgraph/aspect/navgraph.h>
30
31
class
SkillerNavGraphFeature
:
public
fawkes::Thread
,
32
public
fawkes::LoggingAspect
,
33
public
fawkes::ConfigurableAspect
,
34
public
fawkes::NavGraphAspect
,
35
public
SkillerFeature
36
{
37
public
:
38
SkillerNavGraphFeature
();
39
virtual
~SkillerNavGraphFeature
();
40
41
virtual
void
init
();
42
virtual
void
loop
();
43
virtual
void
finalize
();
44
45
virtual
void
init_lua_context
(
fawkes::LuaContext
*context);
46
virtual
void
finalize_lua_context
(
fawkes::LuaContext
*context);
47
48
/** Stub to see name in backtrace for easier debugging. @see Thread::run() */
49
protected
:
50
virtual
void
51
run
()
52
{
53
Thread::run();
54
}
55
56
private
:
57
};
58
59
#endif
fawkes::LuaContext
Definition:
context.h:49
SkillerNavGraphFeature
Definition:
skiller_navgraph_feature.h:31
SkillerNavGraphFeature::finalize
virtual void finalize()
Finalize the thread.
Definition:
skiller_navgraph_feature.cpp:53
SkillerNavGraphFeature::SkillerNavGraphFeature
SkillerNavGraphFeature()
Constructor.
Definition:
skiller_navgraph_feature.cpp:37
SkillerNavGraphFeature::~SkillerNavGraphFeature
virtual ~SkillerNavGraphFeature()
Destructor.
Definition:
skiller_navgraph_feature.cpp:43
SkillerNavGraphFeature::init_lua_context
virtual void init_lua_context(fawkes::LuaContext *context)
Definition:
skiller_navgraph_feature.cpp:63
fawkes::LoggingAspect
Definition:
logging.h:38
SkillerNavGraphFeature::run
virtual void run()
Stub to see name in backtrace for easier debugging.
Definition:
skiller_navgraph_feature.h:56
fawkes::NavGraphAspect
Definition:
navgraph.h:41
SkillerNavGraphFeature::init
virtual void init()
Initialize the thread.
Definition:
skiller_navgraph_feature.cpp:48
SkillerFeature
Definition:
skiller_feature.h:32
fawkes::Thread
Definition:
thread.h:45
SkillerNavGraphFeature::loop
virtual void loop()
Code to execute in the thread.
Definition:
skiller_navgraph_feature.cpp:58
fawkes::ConfigurableAspect
Definition:
configurable.h:38
SkillerNavGraphFeature::finalize_lua_context
virtual void finalize_lua_context(fawkes::LuaContext *context)
Definition:
skiller_navgraph_feature.cpp:74
src
plugins
skiller
skiller_navgraph_feature.h
Generated by
1.8.17