R-Type
R-Type project
BoubouleEnemy.hpp
1 #pragma once
2 
3 #include "KapEngine.hpp"
4 #include "MapScript/EnemyController.hpp"
5 
6 namespace RType {
7  class BoubouleEnemy : public EnemyController {
8  private:
9  long long lastShootTime = 0;
10 
11  public:
12  explicit BoubouleEnemy(std::shared_ptr<KapEngine::GameObject> _gameObject);
13  ~BoubouleEnemy() = default;
14 
15  void onFixedUpdate() override;
16 
17  private:
18  void shoot();
19  };
20 } // namespace RType
RType::EnemyController
Definition: EnemyController.hpp:8
RType::BoubouleEnemy
Definition: BoubouleEnemy.hpp:7
RType::BoubouleEnemy::onFixedUpdate
void onFixedUpdate() override
call eachv x ms
Definition: BoubouleEnemy.cpp:9