summaryrefslogtreecommitdiff
path: root/pacman/view
diff options
context:
space:
mode:
authormithe24 <mithe24@student.sdu.dk>2025-05-23 20:01:04 +0200
committerGitHub <noreply@github.com>2025-05-23 20:01:04 +0200
commit158a0d5de5176e91ea75bb88a4bd03e80494dad2 (patch)
tree3db79ab464a30f9c32514be01405841b4a10f76c /pacman/view
parent6a01dc315b38a047d202b3924be5a84321db8226 (diff)
downloadpacman-158a0d5de5176e91ea75bb88a4bd03e80494dad2.tar.gz
pacman-158a0d5de5176e91ea75bb88a4bd03e80494dad2.zip
Update Sprite.javamain
Diffstat (limited to 'pacman/view')
-rw-r--r--pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java b/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java
index 258a8f3..c1c487a 100644
--- a/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java
+++ b/pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java
@@ -51,10 +51,10 @@ public class Sprite {
throw new IllegalArgumentException("image must not be be null");
}
if (x < 0 || y < 0) {
- throw new IllegalArgumentException("x and y must be a positive number");
+ throw new IllegalArgumentException("x and y must be greater than or equal 0");
}
if (width < 0 || height < 0) {
- throw new IllegalArgumentException("width and height must be a positive number");
+ throw new IllegalArgumentException("width and height must be greater than or equal 0");
}
this.image = image;