Rally X
ELEN3009 Project by Justin Wernick and David Schneider
Public Member Functions | Static Private Attributes
DestroyedObjectPopup Class Reference

Object that appears on the screen for a short time when another object has been destroyed. More...

#include <DestroyedObjectPopup.h>

Inheritance diagram for DestroyedObjectPopup:
LimitedTimeObject GameObject

List of all members.

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.

Detailed Description

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.

Author:
Justin Wernick
David Schneider

Definition at line 15 of file DestroyedObjectPopup.h.


Constructor & Destructor Documentation

DestroyedObjectPopup::DestroyedObjectPopup ( double  x,
double  y,
BitmapStore::Image  image 
)

Creates the popup at the given location, with the given image.

Parameters:
[in]xThe x coordinate of the object's position.
[in]yThe y coordinate of the object's position.
[in]imageThe bitmap to be shown until the popup disappears.

Definition at line 3 of file DestroyedObjectPopup.cpp.


Member Data Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator