diff --git a/Chip.~ava b/Chip.~ava deleted file mode 100644 index 689500f..0000000 --- a/Chip.~ava +++ /dev/null @@ -1,75 +0,0 @@ -import javafx.scene.paint.Color; -import javafx.scene.shape.Shape; -import javafx.scene.shape.Circle; -import javafx.event.Event; -import javafx.event.EventHandler; -import javafx.scene.input.MouseEvent; -/** - * - * Beschreibung - * - * @version 1.0 vom 30.09.2025 - * @author - */ - -public class Chip { - public Game game; - - public Color color; - - public int relativeX; - public int relativeY; - - public double absoluteX; - public double absoluteY; - - public double radius; - - - public Circle circle; - - public int ring; - - public Chip(int id, int relX, int relY,double absX, double absY, Color color, Game game) { - this.ring = ring; - - relativeX = relX; - relativeY = relY; - - absoluteX = absX; - absoluteY = absY; - - this.color = color; - - radius = 20; - - this.color = color; - circle = new Circle(absoluteX, absoluteY, radius); - circle.setFill(this.color); - - this.game = game; - circle.addEventHandler(MouseEvent.MOUSE_CLICKED, mouse_clicked); - - } - public void setPositionX(double X) { - absoluteX = X; - circle.setCenterX(absoluteX); - } - public void setPositionY(double Y) { - absoluteY = Y; - circle.setCenterY(absoluteY); - } - public Shape getShape() { - return circle; - - } - EventHandler mouse_clicked = new EventHandler() { - public void handle(MouseEvent handle) { - chip_clicked(); - } - - }; - public void chip_clicked() { - game.chip_clicked(this); -} -} // end of Chip