1 #ifndef __ENGINE_EXHAUST_H__ 2 #define __ENGINE_EXHAUST_H__ 3 4 //! Engine dots stream out the back of the ship, getting darker as they go. 5 struct enginedots { 6 float x, y, dx, dy; 7 // The life of an engine dot 8 // is a number starting at between 0 and 50 and counting backward. 9 float life; // When reduced to 0, kill 10 }; 11 12 /*! \brief Initialise engine dots 13 * 14 * This function can also be used to remove all engine dots as it only 15 * resets the engine-dot pointers. 16 */ 17 void init_engine_dots(); 18 19 /*! \brief draw engine exhaust dots 20 * 21 * Function to draw the exhaus effect. Draws the particles on the supplied surface. 22 * 23 * \param s surface to draw on 24 */ 25 void draw_engine_dots(SDL_Surface *s); 26 27 void create_engine_dots(int newdots); 28 29 void create_engine_dots2(int newdots, int m); 30 31 32 #endif 33