.. _program_listing_file_gui_Entities_E_Mother.hpp: Program Listing for File E_Mother.hpp ===================================== |exhale_lsh| :ref:`Return to documentation for file ` (``gui/Entities/E_Mother.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp #pragma once #include #include #include #include #include #include #include #include #include "API/API.hpp" #include "Demeter/Demeter.hpp" #include "Demeter/Entity.hpp" #include "Demeter/Renderer/Object3D.hpp" #include "Demeter/Renderer/Texture.hpp" #include "Entities/SubWindowHandler.hpp" #include "Utils/Utils.hpp" struct TileData { int x; int y; int z; float rotation; }; class E_Mother : public Dem::IEntity { private: int fd = 0; std::array _pollOutFd; std::array, 256> _events; size_t _eventCount = 0; size_t _eventIndex = 0; glm::mat4 modelMatrix; std::shared_ptr _tile = nullptr; std::shared_ptr _textureTile = nullptr; std::shared_ptr _ressources = nullptr; std::shared_ptr _player = nullptr; std::shared_ptr _egg = nullptr; std::shared_ptr _textureFood = nullptr; std::shared_ptr _textureLinemate = nullptr; std::shared_ptr _textureDeraumere = nullptr; std::shared_ptr _textureSibur = nullptr; std::shared_ptr _textureMendiane = nullptr; std::shared_ptr _texturePhiras = nullptr; std::shared_ptr _textureThystame = nullptr; std::shared_ptr _texturePlayer = nullptr; std::shared_ptr _textureEgg = nullptr; std::array, 8> _textureTeams; std::vector> _tilemap; std::shared_ptr _api; SubWindowHandler _subWindowHandler; public: bool Init(Dem::Demeter &d) override; bool Update(Dem::Demeter &) override; bool Draw(Dem::Demeter &d) override; };