-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathability.java
More file actions
69 lines (69 loc) · 1.42 KB
/
Copy pathability.java
File metadata and controls
69 lines (69 loc) · 1.42 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import javafx.animation.AnimationTimer;
import javafx.application.Application;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.paint.Color;
import javafx.scene.shape.Circle;
import javafx.stage.Stage;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.image.*;
import javafx.scene.media.AudioClip;
import java.net.URL;
import javafx.application.Application;
import javafx.geometry.Rectangle2D;
import javafx.event.*;
import javafx.scene.input.*;
import javafx.scene.text.*;
public class ability{
private int damage;
private int xPos, yPos;
private int speed;
private Image image;
private boolean left;
private int time;
private boolean remove;
public ability(Image i, int x, int y, boolean l){
image = i;
xPos = x;
yPos = y;
left = l;
}
public int getDamage(){
return damage;
}
public void move(int x, int y){
xPos = x;
yPos = y;
}
public int getXpos(){
return xPos;
}
public int getYpos(){
return yPos;
}
public Image getImage(){
return image;
}
public int getSpeed(){
return speed;
}
public boolean getLeft(){
return left;
}
public int getTime(){
return time;
}
public void setTime(int t){
time = t;
}
public void setLeft(boolean b){
left = b;
}
public void setRemove(boolean b){
remove = b;
}
public boolean getRemove(){
return remove;
}
}