/* # _____ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2022, tyra - https://github.com/h4570/tyra # Licensed under Apache License 2.0 # Sandro Sobczyński */ #pragma once #include "states/game/terrain/heightmap.hpp" #include "./enemy.hpp" #include #include using Tyra::DynamicMesh; using Tyra::Engine; using Tyra::Texture; using Tyra::TextureRepository; using Tyra::Vec4; namespace Demo { class EnemyManager { public: EnemyManager(Engine* engine, const Heightmap& heightmap); ~EnemyManager(); void update(const Heightmap& heightmap, const Vec4& playerPosition); std::vector getPairs() const; private: TextureRepository* textureRepo; std::vector enemies; DynamicMesh* motherMesh; Texture* bodyTexture; Texture* clothTexture; }; } // namespace Demo