-
Notifications
You must be signed in to change notification settings - Fork 1
/
boundary.java
89 lines (79 loc) · 2.34 KB
/
boundary.java
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import java.io.IOException;
import java.net.URL;
import java.util.ArrayList;
import java.util.ResourceBundle;
import javax.swing.plaf.basic.BasicInternalFrameUI.InternalFramePropertyChangeListener;
import javafx.animation.Animation;
import javafx.animation.AnimationTimer;
import javafx.animation.TranslateTransition;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
//import javafx.scene.input.DragEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.Pane;
import javafx.scene.paint.Color;
import javafx.scene.paint.CycleMethod;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Stop;
import javafx.scene.shape.Rectangle;
import javafx.stage.Stage;
import javafx.util.Duration;
import javafx.scene.Node;
public class boundary extends controller {
private int health;
private Image oimg = new Image("The_Will_Hero-main/bigorc.jpeg");
private ImageView orc;
private AnchorPane pane1;
private TranslateTransition transy;
private TranslateTransition transx;
private TranslateTransition transz;
private ImageView avataView;
private Double x;
private Double y;
private Rectangle bound;
private ArrayList<island> ISLAND1;
public boundary(AnchorPane p1, int x, int y, int X, int Y) {
bound = new Rectangle();
pane1 = p1;
bound.setHeight(y);
bound.setWidth(x);
bound.setLayoutX(X);
bound.setLayoutY(Y);
// pane1 =pane;
p1.getChildren().add(bound);
// bound.setVisible(false);
}
public boundary(AnchorPane p1, int x, int y, Double X, int Y) {
bound = new Rectangle();
pane1 = p1;
bound.setHeight(y);
bound.setWidth(x);
bound.setLayoutX(X);
bound.setLayoutY(Y);
// pane1 =pane;
p1.getChildren().add(bound);
// bound.setVisible(false);
}
public ImageView getOrc() {
return orc;
}
// public int getX()
// {
// return x;
// }
// public int getY()
// {
// return y;
// }
public Rectangle gRectangle() {
return bound;
}
}