Fawkes API  Fawkes Development Version
SkillerFeature Class Referenceabstract

Skiller feature base class. More...

#include "skiller_feature.h"

Inheritance diagram for SkillerFeature:

Public Member Functions

virtual ~SkillerFeature ()
 Virtual empty destructor. More...
 
virtual void init_lua_context (fawkes::LuaContext *context)=0
 Initialize a Lua context. More...
 
virtual void finalize_lua_context (fawkes::LuaContext *context)=0
 Finalize a Lua context. More...
 

Detailed Description

Skiller feature base class.

Skiller features are additions to the skiller Lua context that can be added dynamically.

Author
Tim Niemueller

Definition at line 32 of file skiller_feature.h.

Constructor & Destructor Documentation

◆ ~SkillerFeature()

SkillerFeature::~SkillerFeature ( )
virtual

Virtual empty destructor.

Definition at line 45 of file skiller_feature.cpp.

Member Function Documentation

◆ finalize_lua_context()

void SkillerFeature::finalize_lua_context ( fawkes::LuaContext context)
pure virtual

Finalize a Lua context.

The Lua context will be torn down shortly and needs to be finalized, for example perform any extra operations for proper finalization or unregister a context watcher. After this call the context may no longer be used or dereferenced.

Parameters
contextLua context to finalize

Implemented in SkillerNavGraphFeature.

◆ init_lua_context()

void SkillerFeature::init_lua_context ( fawkes::LuaContext context)
pure virtual

Initialize a Lua context.

The Lua context has been initialized with the basics. Now the feature can make its additions and add stuff or register as context watcher.

Parameters
contextLua context to initialize

Implemented in SkillerNavGraphFeature.


The documentation for this class was generated from the following files: