mirror of
https://github.com/rwengine/openrw.git
synced 2024-11-10 12:52:39 +01:00
3f40ba0e18
+ Add support for setting leader, e.g. Misty follows you during "Luigi's Girls".
22 lines
413 B
C++
22 lines
413 B
C++
#pragma once
|
|
#ifndef _DEFAULTAICONTROLLER_HPP_
|
|
#define _DEFAULTAICONTROLLER_HPP_
|
|
#include <ai/CharacterController.hpp>
|
|
#include <random>
|
|
|
|
struct AIGraphNode;
|
|
class DefaultAIController : public CharacterController
|
|
{
|
|
glm::vec3 gotoPos;
|
|
public:
|
|
|
|
DefaultAIController(CharacterObject* character)
|
|
: CharacterController(character) {}
|
|
|
|
glm::vec3 getTargetPosition();
|
|
|
|
virtual void update(float dt);
|
|
};
|
|
|
|
#endif
|