-
Notifications
You must be signed in to change notification settings - Fork 0
/
tower.h
34 lines (22 loc) · 598 Bytes
/
tower.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
#ifndef TOWER_H
#define TOWER_H
#pragma once
#include <QImage>
#include <QRect>
#include "gameobject.h"
class Tower : public GameObject
{
public:
double xRange, yRange;
QRect *range;
QPoint *targetLocation;
Tower(double x, double y, QImage *i);
virtual bool enemyDetected(GameObject *target);
virtual void drag();
virtual QRect *getRange();
virtual QPoint *getTargetLocation();
virtual void setTargetLocation(QPoint *point);
private:
void InitializeInstanceFields();
}; // end class definition
#endif // TOWER_H