Repository navigation
Expand file tree
/
Copy pathAshe.java
More file actions
53 lines (45 loc) · 1.44 KB
/
Copy pathAshe.java
File metadata and controls
53 lines (45 loc) · 1.44 KB
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
43
44
45
46
47
48
49
50
51
52
53
import java.awt.*;
public class Ashe extends Champion implements AsheActionCallbacks{
public Ashe(int id, String name, String role, String difficulty, String description) {
super(id, name, role, difficulty, description);
}
@Override
public void frostShot(Screen s) {
s.setVisible(true);
s.out(showMessage(),"helvetica",26, Color.BLACK);
s.showImage("frost_shot.gif");
s.setBounds(200, 100, 1100, 1000);
}
@Override
public void hawkShot(Screen s) {
s.cls();
s.repaint();
s.out(showMessage(),"helvetica",26, Color.MAGENTA);
s.showImage("hawkshot.gif");
s.setBounds(200, 100, 1100, 1000);
}
@Override
public void rangerFocus(Screen s) {
s.cls();
s.repaint();
s.out(showMessage(),"helvetica",26, Color.BLUE);
s.showImage("ranger_focus.gif");
s.setBounds(200, 100, 1100, 1000);
}
@Override
public void volley(Screen s) {
s.cls();
s.repaint();
s.out(showMessage(),"helvetica",26, Color.BLACK);
s.showImage("volley.gif");
s.setBounds(200, 100, 1100, 1000);
}
@Override
public void crystalArrow(Screen s) {
s.cls();
s.repaint();
s.out(showMessage(),"helvetica",26, Color.RED);
s.showImage("crystal_arrow.gif");
s.setBounds(200, 100, 1100, 1000);
}
}