added sliders

reworked painting
added animations
reworked point2
added point3 point4
made tag inner class in Debugger
added fps animation parsing debuggers
made new thread for painting at 60fps
This commit is contained in:
Macocian Adrian Radu
2020-03-31 01:01:25 +03:00
parent c4b18404a8
commit 62f3d8d46c
35 changed files with 763 additions and 379 deletions

View File

@@ -1,6 +1,20 @@
package guiTree.Helper;
public class Debugger {
public enum Tag {
LISTENER(false),
PAINTING(false),
FPS(false),
ANIMATIONS(true),
PARSING(false);
public boolean value;
Tag(boolean value) {
this.value = value;
}
}
private static Timer timer = new Timer();
public static void log(String message, Tag tag) {

View File

@@ -0,0 +1,15 @@
package guiTree.Helper;
public class Point2<T> {
public T x;
public T y;
public Point2(T x, T y) {
this.x = x;
this.y = y;
}
public boolean equals(Point2<T> point2) {
return x == point2.y && y == point2.y;
}
}

View File

@@ -1,11 +0,0 @@
package guiTree.Helper;
public class Point2d {
public int x;
public int y;
public Point2d(int x,int y) {
this.x = x;
this.y = y;
}
}

View File

@@ -0,0 +1,17 @@
package guiTree.Helper;
public class Point3<T> {
public T x;
public T y;
public T z;
public Point3(T x, T y, T z) {
this.x = x;
this.y = y;
this.z = z;
}
public boolean equals(Point3<T> point3) {
return x == point3.x && y == point3.y && z == point3.z;
}
}

View File

@@ -0,0 +1,19 @@
package guiTree.Helper;
public class Point4<T> {
public T a;
public T b;
public T c;
public T d;
public Point4(T a, T b, T c, T d) {
this.a = a;
this.b = b;
this.c = c;
this.d = d;
}
public boolean equals(Point4<T> point4) {
return a == point4.a && b == point4.b && c == point4.c && d == point4.d;
}
}

View File

@@ -1,12 +0,0 @@
package guiTree.Helper;
public enum Tag {
LISTENER(true),
PAINTING(false);
public boolean value;
Tag(boolean value) {
this.value = value;
}
}

View File

@@ -12,4 +12,8 @@ public class Timer {
now = System.currentTimeMillis();
return now - prev;
}
public long getTime() {
return System.currentTimeMillis() - prev;
}
}