-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFoodWinner.h
36 lines (29 loc) · 858 Bytes
/
FoodWinner.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 FOODWINNER_H
#define FOODWINNER_H
/*!\file FoodWinner.h
*
* \brief Represents a FoodWinner piece.
*
* \author Chad Martin
*
* A daughter of the Food class. Represents a Linux Logo.
* If Snake collides with FoodWinner, a victory screen will occur.
*/
#include "Food.h" //required due to inheritance
#include <QImage>
#include <QRect>
/*! \brief A FoodWinner piece
* A daughter of the Food class.
* Represents a Linux Logo.
* If Snake collides with FoodWinner, a victory screen will occur.*/
class FoodWinner : 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 Linux logo image.*/
FoodWinner();
/*! Class Destructor - Does Nothing*/
~FoodWinner();
};
#endif