Rally X
ELEN3009 Project by Justin Wernick and David Schneider
|
Object that appears on the screen for a short time when another object has been destroyed. More...
#include <DestroyedObjectPopup.h>
Public Member Functions | |
DestroyedObjectPopup (double x, double y, BitmapStore::Image image) | |
Creates the popup at the given location, with the given image. | |
Static Private Attributes | |
static const int | POPUP_TIME = 30 |
The number of frames that the DestroyedObjectPopup exists before it is destroyed. 1 second at FPS=30. |
Object that appears on the screen for a short time when another object has been destroyed.
Used to give extra visual feedback when a checkpoint has been collected or a Car crashes.
Definition at line 15 of file DestroyedObjectPopup.h.
DestroyedObjectPopup::DestroyedObjectPopup | ( | double | x, |
double | y, | ||
BitmapStore::Image | image | ||
) |
Creates the popup at the given location, with the given image.
[in] | x | The x coordinate of the object's position. |
[in] | y | The y coordinate of the object's position. |
[in] | image | The bitmap to be shown until the popup disappears. |
Definition at line 3 of file DestroyedObjectPopup.cpp.
const int DestroyedObjectPopup::POPUP_TIME = 30 [static, private] |
The number of frames that the DestroyedObjectPopup exists before it is destroyed. 1 second at FPS=30.
Definition at line 30 of file DestroyedObjectPopup.h.