-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFireTower.java
More file actions
31 lines (26 loc) · 802 Bytes
/
FireTower.java
File metadata and controls
31 lines (26 loc) · 802 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
31
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Creates a Fire Tower, and changes the characteristics of a generic <br>
* tower when constructed. All actions are done within the superclass.
*
* @author (Terence)
*/
public class FireTower extends Tower
{
public FireTower()
{
fileName = "Towers/f";
setImage("Towers/f1.png");
attackRate = 24; // rate at which it attak
range = 300; // maxiumum range of the tower
speed = 10;// speed of the projectile
power = 6;
counter = attackRate;
element = 3;
elementString = "fire";
name = "Fire Tower";
cost = 10;
desc.add ("Tower with average power,");
desc.add ("range and attack range");
}
}