2019-09-09 01:28:29 +02:00
|
|
|
#ifndef AI_ACTION_CONTAINER_H
|
|
|
|
#define AI_ACTION_CONTAINER_H
|
|
|
|
|
|
|
|
#include "ai_action.h"
|
|
|
|
|
|
|
|
class AIActionContainer : public AIAction {
|
|
|
|
GDCLASS(AIActionContainer, AIAction);
|
|
|
|
|
|
|
|
public:
|
|
|
|
int get_num_ai_actions();
|
|
|
|
void set_num_ai_actions(int value);
|
|
|
|
|
|
|
|
Ref<AIAction> get_ai_action(int index);
|
|
|
|
void set_ai_action(int index, Ref<AIAction> aura);
|
|
|
|
|
|
|
|
Vector<Variant> get_ai_actions();
|
|
|
|
void set_ai_actions(const Vector<Variant> &auras);
|
|
|
|
|
2019-10-31 22:48:02 +01:00
|
|
|
void _on_set_owner();
|
|
|
|
|
2019-09-09 01:28:29 +02:00
|
|
|
AIActionContainer();
|
2019-09-27 00:49:21 +02:00
|
|
|
~AIActionContainer();
|
2019-09-09 01:28:29 +02:00
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Vector<Ref<AIAction> > _ai_actions;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|