Merge remote-tracking branch 'origin/master'

This commit is contained in:
Thomas 2022-01-11 14:42:47 +01:00
commit f2b7571c7f
No known key found for this signature in database
GPG Key ID: E538821A6CDFDAD7
2 changed files with 25 additions and 10 deletions

View File

@ -1,3 +1,14 @@
/*!
*
* @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
@ -13,7 +24,7 @@ class GoodPixelManager : public PixelManager{
/*!
* @brief loads sprites in parallel using multiple threads
* @param[in] vec : We take his ownership, so
* @param[out] tasks : vectot of task
* @fn void loadSprites();
*/
void loadSprites(vector<Task>& tasks) override;
@ -24,17 +35,17 @@ class GoodPixelManager : public PixelManager{
MySprite player;
/*!
* @brief sprite of the first invader
* @brief sprite of the type A invader
*/
MySprite invaderA;
/*!
* @brief sprite of the second invader
* @brief sprite of the type B invader
*/
MySprite invaderB;
/*!
* @brief sprite of the third invader
* @brief sprite of the type B invader
*/
MySprite invaderC;
@ -63,9 +74,11 @@ class GoodPixelManager : public PixelManager{
public:
/*!
* @brief constructor
* @brief constructor the pixel manager class
* @param[in] window : window of the pixel manager
* @fn GoodPixelManager(MinGL&);
*/
GoodPixelManager(MinGL& win);
explicit GoodPixelManager(MinGL& window);
};

View File

@ -6,7 +6,7 @@
* @author FABRE Lucas
* @date January 2022
* @version 1.0
* @brief manager
* @brief Manages screen display
*
*/
@ -46,17 +46,19 @@ typedef nsGui::GlutFont::GlutFonts Font;
class PixelManager{
public:
MinGL& window;
/*!
* @brief display window
*/
MinGL& window;
/*!
* @brief loads sprites in parallel using multiple threads
* @param[in] vec : We take his ownership, so
* @param[in] tasks : vectot of task
* @fn void loadSprites();
*/
virtual void loadSprites(vector<Task>& tasks);
/*!
* @brief sprite of the logo of the game
*/