summaryrefslogtreecommitdiff
path: root/source/logic/Smokescreen.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/logic/Smokescreen.h')
-rw-r--r--source/logic/Smokescreen.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/source/logic/Smokescreen.h b/source/logic/Smokescreen.h
new file mode 100644
index 0000000..59d1871
--- /dev/null
+++ b/source/logic/Smokescreen.h
@@ -0,0 +1,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