-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAirTower.java
More file actions
30 lines (26 loc) · 786 Bytes
/
AirTower.java
File metadata and controls
30 lines (26 loc) · 786 Bytes
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
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Creates a Air Tower, and changes the characteristics of a generic <br>
* tower when constructed. All actions are done within the superclass.
*
* @author (Terence)
*/
public class AirTower extends Tower
{
public AirTower()
{
fileName = "Towers/a";
setImage("Towers/a1.png");
attackRate = 30; // rate at which it attak
range = 400; // maxiumum range of the tower
speed = 10;// speed of the projectile
power = 8;
counter = attackRate;
element = 1;
elementString = "air";
name = "Air Tower";
cost = 10;
desc.add ("lightweight tower");
desc.add ("Average range and power");
}
}