diff options
Diffstat (limited to 'pacman/view/src/main/java/com')
| -rw-r--r-- | pacman/view/src/main/java/com/gr15/pacman/view/Sprite.java | 4 |
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; |