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

Flees the current IFilter selection from the given ICharacter. More...

#include <SelectionFlee.h>

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

Public Member Functions

 SelectionFlee (const std::string &)
 
virtual MoveVector execute (const AIPtr &ai, 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)
 

Additional Inherited Members

- Protected Member Functions inherited from ai::movement::SelectionSteering
glm::vec3 getSelectionTarget (const AIPtr &entity, std::size_t index) const
 

Detailed Description

Flees the current IFilter selection from the given ICharacter.

Member Function Documentation

virtual MoveVector ai::movement::SelectionFlee::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: