SuperSpaceInvaderTurboApoca.../headers/pixelManager/goodPixelManager.h
2022-01-11 14:31:07 +01:00

73 lines
1.2 KiB
C++

/*!
*
* @file goodPixelManager.h
* @author RUBINI Thomas
* @date January 2022
* @version 1.0
* @brief Manages screen display with async sprite loading
*
*/
#ifndef GUARD_GOODPIXELMANAGER_H
#define GUARD_GOODPIXELMANAGER_H
#include "pixelManager/pixelManager.h"
/*!
* @class GoodPixelManager
* @brief Extension of the PixelManager class, which override
* the draw methods to use sprites instead of shapes
*/
class GoodPixelManager : public PixelManager{
/*!
* @brief loads sprites in parallel using multiple threads
* @param[out] tasks : vectot of task
* @fn void loadSprites();
*/
void loadSprites(vector<Task>& tasks) override;
/*!
* @brief sprite of the player
*/
MySprite player;
/*!
* @brief sprite of the type A invader
*/
MySprite invaderA;
/*!
* @brief sprite of the type B invader
*/
MySprite invaderB;
/*!
* @brief sprite of the type B invader
*/
MySprite invaderC;
/*!
* @brief sprite of the missile
*/
MySprite missile;
/*!
* @brief sprite of the torpedo
*/
MySprite torpedo;
public:
/*!
* @brief constructor the pixel manager class
* @param[in] window : window of the pixel manager
* @fn GoodPixelManager(MinGL&);
*/
explicit GoodPixelManager(MinGL& window);
};
#endif