Commit 4ee7bef3 authored by nargessalehi98's avatar nargessalehi98

Check prize expiration.

parent 76006a10
...@@ -8,8 +8,14 @@ public class Prize { ...@@ -8,8 +8,14 @@ public class Prize {
int x; int x;
int y; int y;
int width; int width;
public boolean CheckExpiration() {
return checkExpiration;
}
int height; int height;
String name; String name;
boolean checkExpiration=false;
public Prize(int x, int y, int width, int height, String name) { public Prize(int x, int y, int width, int height, String name) {
this.x = x; this.x = x;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment