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

GameObject that causes the EnemyCar to be delayed if they crash into it. More...

#include <Smokescreen.h>

Inheritance diagram for Smokescreen:
LimitedTimeObject GameObject

List of all members.

Public Member Functions

 Smokescreen (double x, double y)
 Creates a Smokescreen at the given location.

Static Private Attributes

static const int SMOKE_TIME = 60
 The number of frames that the Smokescreen exists before it is destroyed. 2 second at FPS=30.

Detailed Description

GameObject that causes the EnemyCar to be delayed if they crash into it.

After a short time, the SmokeScreen dissipates.

Author:
Justin Wernick
David Schneider

Definition at line 15 of file Smokescreen.h.


Constructor & Destructor Documentation

Smokescreen::Smokescreen ( double  x,
double  y 
)

Creates a Smokescreen at the given location.

Parameters:
[in]xThe x coordinate of the object's position.
[in]yThe y coordinate of the object's position.

Definition at line 3 of file Smokescreen.cpp.


Member Data Documentation

const int Smokescreen::SMOKE_TIME = 60 [static, private]

The number of frames that the Smokescreen exists before it is destroyed. 2 second at FPS=30.

Definition at line 28 of file Smokescreen.h.


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