Gamepublic class Game extends MediaContent
Fields Summary |
---|
private static String[] | allRatings |
Constructors Summary |
---|
public Game()
| public Game(String title, Studio studio, Date releaseDate, String rating, String reasons)
super(title, studio, releaseDate, rating, reasons);
|
Methods Summary |
---|
public boolean | validRating(java.lang.String rating)
for (int i = 0; i < allRatings.length; ++i) {
if (rating.equals(allRatings[i])) return true;
}
return false;
|
|