Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
aibindings.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "bindings.h"
6 
7 
8 class AiBindings : public Bindings {
9 public:
10  AiBindings(GamePlayScript& script);
11 
12 
13 protected:
14  virtual void bind() override;
15 
16  std::string apiGetFaction(apikey ship);
17  int apiSetFaction(apikey ship, const std::string& faction);
18  float apiGetFactionRelation(const std::string& factionA, const std::string& factionB);
19  int apiSetFactionRelation(const std::string& factionA, const std::string& factionB, float friendliness);
20 
21  apikey apiOnAiTaskFinished(apikey aiTask, const std::string& callback);
22 
23  apikey apiCreateFlyToTask(apikey ship);
24  int apiSetTargetPoint(apikey flyToTask, const glm::vec3& point);
25  apikey apiCreateFightTask(apikey ship);
26  int apiAddFightTaskTarget(apikey flyToTask, apikey worldObject);
27 
28  apikey apiTaskExecutor(apikey aiTask);
29 };
30 
Definition: gameplayscript.h:17
Definition: bindings.h:13
Definition: aibindings.h:8