-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpecialFood.h
36 lines (29 loc) · 899 Bytes
/
SpecialFood.h
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
32
33
34
35
#ifndef SPECIALFOOD_H
#define SPECIALFOOD_H
/*!\file SpecialFood.h
*
* \brief Represents a SpecialFood piece.
*
* \author Chad Martin
*
* A daughter of the Food class. Represents a Windows 8 Logo.
* If Snake collides with SpecialFood, a special game over will occur (BSOD).
*/
#include "Food.h" //required due to inheritance
#include <QImage>
#include <QRect>
/*! \brief A SpecialFood piece
* A daughter of the Food class.
* Represents a Windows 8 Logo.
* If Snake collides with SpecialFood, a special game over will occur (BSOD).*/
class SpecialFood : public Food
{
public:
/*! Class Constructor - loads first image, moves to random location.
* Precondition: A new instance of game was created.
* Postcondition: A new piece of food is created with Windows 8 logo image.*/
SpecialFood();
/*! Class Destructor - Does Nothing*/
~SpecialFood();
};
#endif