merge dev into test #33

Merged
j23f0712 merged 36 commits from development into dev/test 2024-12-02 17:37:00 +01:00
49 changed files with 1198 additions and 371 deletions
Showing only changes of commit 167d898a3c - Show all commits

View File

@@ -10,7 +10,7 @@ public class StartNode extends Node {
/**
* The color of the node.
*/
private int color;
private Color color;
/**
* Creates a new start node with the given color.
@@ -18,11 +18,11 @@ public class StartNode extends Node {
* @param color the color of the node
*/
public StartNode(Color color) {
this.color = color.ordinal();
this.color = color;
}
private StartNode() {
color = Color.NONE.ordinal();
color = Color.NONE;
}
/**
@@ -31,7 +31,7 @@ private StartNode() {
* @return the color of the node
*/
public Color getColor() {
return Color.values()[color];
return color;
}
/**
@@ -40,6 +40,6 @@ public Color getColor() {
* @param color the new color of the node
*/
public void setColor(Color color) {
this.color = color.ordinal();
this.color = color;
}
}