The Table Engine
enemy_ai_script.h
Go to the documentation of this file.
1 
9 #include "script.h"
10 
18 class EnemyAIScript : public Script {
19 private:
20  float m_speed = 2;
22 public:
28  EnemyAIScript();
29 
36  void update() override;
37 
44  void render() override;
45 };
Script to manage enemy artificial intelligence.
void update() override
Updates the behavior of the enemy each frame.
void render() override
Renders the enemy AI behavior.
EnemyAIScript()
Constructs a new Enemy AI Script object.
Base class for scripting custom behaviors in game objects.
Definition: script.h:22
Defines the Script class for attaching behavior to game objects.