blob: 59d1871747a52b155db68773825f5e8c91ea3e46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef SMOKESCREEN_H
#define SMOKESCREEN_H
#include "../logic/LimitedTimeObject.h"
#include "../presentation/BitmapStore.h"
/**
* @brief GameObject that causes the EnemyCar to be delayed if they crash into it.
*
* After a short time, the SmokeScreen dissipates.
*
* @author Justin Wernick
* @author David Schneider
*/
class Smokescreen : public LimitedTimeObject
{
public:
/**
* @brief Creates a Smokescreen at the given location.
*
* @param [in] x The x coordinate of the object's position.
* @param [in] y The y coordinate of the object's position.
*/
Smokescreen(double x, double y);
//assignment and copy constructors have been left with the compiler generated versions
private:
static const int SMOKE_TIME = 60; ///< The number of frames that the Smokescreen exists before it is destroyed. 2 second at FPS=30.
};
#endif // SMOKESCREEN_H
|