doc goodPixelManager.h
This commit is contained in:
		
							parent
							
								
									369dc4ecbc
								
							
						
					
					
						commit
						443a21d7ac
					
				| @ -3,17 +3,55 @@ | |||||||
| 
 | 
 | ||||||
| #include "pixelManager/pixelManager.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{ | class GoodPixelManager : public PixelManager{ | ||||||
| 
 | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief loads sprites in parallel using multiple threads | ||||||
|  |  	* @param[in] vec : We take his ownership, so | ||||||
|  | 	* @fn void loadSprites(); | ||||||
|  | 	*/ | ||||||
| 	void loadSprites(vector<Task>& tasks) override; | 	void loadSprites(vector<Task>& tasks) override; | ||||||
| 
 | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the player | ||||||
|  | 	*/ | ||||||
| 	MySprite player; | 	MySprite player; | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the first invader | ||||||
|  | 	*/ | ||||||
| 	MySprite invaderA; | 	MySprite invaderA; | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the second invader | ||||||
|  | 	*/ | ||||||
| 	MySprite invaderB; | 	MySprite invaderB; | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the third invader | ||||||
|  | 	*/ | ||||||
| 	MySprite invaderC; | 	MySprite invaderC; | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the missile | ||||||
|  | 	*/ | ||||||
| 	MySprite missile; | 	MySprite missile; | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief sprite of the torpedo | ||||||
|  | 	*/ | ||||||
| 	MySprite torpedo; | 	MySprite torpedo; | ||||||
| public: | public: | ||||||
|  | 
 | ||||||
|  | 	/*!
 | ||||||
|  | 	* @brief constructor | ||||||
|  | 	*/ | ||||||
| 	GoodPixelManager(MinGL& win); | 	GoodPixelManager(MinGL& win); | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user