merge the new developmentbranch into the test branch #39

Closed
j23f0712 wants to merge 431 commits from development2 into dev/test
Showing only changes of commit f90aed7bbb - Show all commits

View File

@@ -3,8 +3,8 @@
import com.jme3.network.serializing.Serializable; import com.jme3.network.serializing.Serializable;
/** /**
* This enumeration will be used to show the four different TSK which can be picked from a player. * This enumeration represents the four different TSK colors that a player can choose.
* In Addition, the NONE color will be used to show a none color. * Additionally, the NONE color indicates the absence of a color.
*/ */
@Serializable @Serializable
public enum Color { public enum Color {
@@ -58,4 +58,19 @@ public Color next() {
return colors[nextIndex]; return colors[nextIndex];
} }
/**
* This method will be used to return the color of the given index.
*
* @param i as the index of the color as an Integer.
* @return a Color enumeration.
*/
public static Color getColor(int i) {
for (Color color : Color.values()) {
if (color.ordinal() == i) {
return color;
}
}
return null;
}
} }