-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnowpeabullets.h
42 lines (38 loc) · 893 Bytes
/
snowpeabullets.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
36
37
38
39
40
41
42
#ifndef SNOWPEABULLETS_H
#define SNOWPEABULLETS_H
#include "zombies.h"
#include "plants.h"
#include <QObject>
#include <QGraphicsPixmapItem>
#include <QGraphicsItem>
#include <QDebug>
#include <ctime>
#include <QPainter>
#include <QGraphicsScene>
#include <QRect>
#include <ctime>
#include <QColor>
class snowpeabullets : public QGraphicsItem
{
public:
snowpeabullets();
snowpeabullets(int,int);
void advance(int phase);
void move(double time);
double xVelocity;
double yVelocity;
void setXVelocity(double);
void setYVelocity(double);
int x() const;
int y() const;
int randomValue();
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QRectF boundingRect() const;
private:
int xCoordinate;
int yCoordinate;
int random;
int random1;
double direction;
};
#endif // SNOWPEABULLETS_H