SimpleAI
 All Classes Namespaces Files Functions Variables Typedefs Macros Groups Pages
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ai::movement::LUASteering Class Reference

#include <LUASteering.h>

Inheritance diagram for ai::movement::LUASteering:
[legend]
Collaboration diagram for ai::movement::LUASteering:
[legend]

Classes

class  LUASteeringFactory
 

Public Member Functions

 LUASteering (lua_State *s, const std::string &type)
 
MoveVector execute (const AIPtr &entity, float speed) const override
 Calculates the MoveVector. More...
 
- Public Member Functions inherited from ai::_MemObject< AllocatorClass >
void * operator new (size_t size)
 
void * operator new (size_t, void *ptr)
 
void * operator new[] (size_t size)
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 

Protected Member Functions

MoveVector executeLUA (const AIPtr &entity, float speed) const
 

Protected Attributes

lua_State * _s
 
std::string _type
 

Detailed Description

See Also
LUAAIRegistry

Member Function Documentation

MoveVector ai::movement::LUASteering::execute ( const AIPtr &  ai,
float  speed 
) const
inlineoverridevirtual

Calculates the MoveVector.

Returns
If the MoveVector contains glm::vec3::VEC3_INFINITE as vector, the result should not be used because there was an error.

Implements ai::movement::ISteering.


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