mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-08-19 21:35:35 +02:00
Gjør den del nødvendige forandringer for å kunne tegne det nye brettet
Oppdaterer IDrawableObject og IDrawableGame og implementerende klasser Legger til en utility klasse for input og output Legger til manglende metoder i TextureConverterUtil Oppdaterer noen tester med nye datatyper
This commit is contained in:
@@ -77,7 +77,7 @@ public class Grid<K> implements IGrid<K> {
|
||||
*/
|
||||
private void makeSureCoordinatesAreWithinBounds(int x, int y) {
|
||||
if (x < 0 || x >= width || y < 0 || y >= height) {
|
||||
throw new IllegalArgumentException();
|
||||
throw new IllegalArgumentException("Coordinates are outside the bounds of the board.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user