Legger til en ekstra test og forbedrer kommentarer for TileType

Fikser en skrivefeil i beskrivelsen av getTileTypeFromID
Legger til en ekstra test som sjekker at alle TileType verdier har en unik id
This commit is contained in:
2020-02-17 20:58:55 +01:00
parent 4b07882d47
commit 827c8e0aed
2 changed files with 27 additions and 3 deletions

View File

@ -40,7 +40,7 @@ public enum TileType {
/**
* Gets the numerical id used for alternate identification of a tile type
* @return <p>The numerical id of the tile</p>
* @return <p>The numerical id of the tile type</p>
*/
public int getTileTypeID() {
return this.tileTypeID;
@ -48,8 +48,8 @@ public enum TileType {
/**
* Gets a tile type value from its numerical representation
* @param tileTypeID <p>The numerical representation of a tile tpye</p>
* @return <p>The enum value representing the tile type</p>
* @param tileTypeID <p>The numerical representation of a tile type</p>
* @return <p>The enum value representing the tile type, or null if the id is invalid</p>
*/
public static TileType getTileTypeFromID(int tileTypeID) {
for (TileType type : TileType.values()) {