|
|
@ -1332,6 +1332,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is compatible with one player or more. |
|
|
|
* |
|
|
|
* @return Prints out the games that can be played with one or more players. |
|
|
|
*/ |
|
|
|
public String checkOnePlayer() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Players FROM Games"; |
|
|
@ -1362,6 +1367,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is compatible with two players or more. |
|
|
|
* |
|
|
|
* @return Prints out the games that can be played with two or more players. |
|
|
|
*/ |
|
|
|
public String checkTwoPlayer() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Players FROM Games"; |
|
|
@ -1391,6 +1401,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is compatible with four players or more. |
|
|
|
* |
|
|
|
* @return Prints out the games that can be played with four or more players. |
|
|
|
*/ |
|
|
|
public String checkFourPlayer() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Players FROM Games"; |
|
|
@ -1420,6 +1435,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is compatible with eight players |
|
|
|
* |
|
|
|
* @return Prints out the games that can be played with eight players. |
|
|
|
*/ |
|
|
|
public String checkEightPlayer() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Players FROM Games"; |
|
|
@ -1449,6 +1469,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is compatible with one player only. |
|
|
|
* |
|
|
|
* @return Prints out the games that can only be played alone. |
|
|
|
*/ |
|
|
|
public String checkOnePlayerOnly() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Players FROM Games"; |
|
|
@ -1478,6 +1503,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is USK 0 |
|
|
|
* |
|
|
|
* @return Prints all the USK 0 games. |
|
|
|
*/ |
|
|
|
public String checkUskZero() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
@ -1507,6 +1537,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is USK 6 |
|
|
|
* |
|
|
|
* @return Prints all the USK 6 games. |
|
|
|
*/ |
|
|
|
public String checkUskSix() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
@ -1536,6 +1571,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is USK 12 |
|
|
|
* |
|
|
|
* @return Prints all the USK 12 games. |
|
|
|
*/ |
|
|
|
public String checkUskTwelve() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
@ -1565,6 +1605,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is USK 16 |
|
|
|
* |
|
|
|
* @return Prints all the USK 16 games. |
|
|
|
*/ |
|
|
|
public String checkUskSixteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
@ -1594,6 +1639,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is USK 18 |
|
|
|
* |
|
|
|
* @return Prints all the USK 18 games. |
|
|
|
*/ |
|
|
|
public String checkUskEighteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_USK_Rating FROM Games"; |
|
|
@ -1623,6 +1673,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is PEGI 3. |
|
|
|
* |
|
|
|
* @return Prints all the PEGI 3 games. |
|
|
|
*/ |
|
|
|
public String checkPegiThree() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1652,6 +1707,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is PEGI 7. |
|
|
|
* |
|
|
|
* @return Prints all the PEGI 7 games. |
|
|
|
*/ |
|
|
|
public String checkPegiSeven() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1681,6 +1741,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is PEGI 12. |
|
|
|
* |
|
|
|
* @return Prints all the PEGI 12 games. |
|
|
|
*/ |
|
|
|
public String checkPegiTwelve() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1710,6 +1775,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is PEGI 16. |
|
|
|
* |
|
|
|
* @return Prints all the PEGI 16 games. |
|
|
|
*/ |
|
|
|
public String checkPegiSixteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1739,6 +1809,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is PEGI 18. |
|
|
|
* |
|
|
|
* @return Prints all the PEGI 18 games. |
|
|
|
*/ |
|
|
|
public String checkPegiEighteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1768,6 +1843,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has no PEGI rating. |
|
|
|
* |
|
|
|
* @return Prints all the games without a PEGI rating. |
|
|
|
*/ |
|
|
|
public String checkPegiUnknown() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_PEGI_Rating FROM Games"; |
|
|
@ -1797,6 +1877,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ESRB E. |
|
|
|
* |
|
|
|
* @return Prints all the ESRB E games. |
|
|
|
*/ |
|
|
|
public String checkEsrbE() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; |
|
|
@ -1826,6 +1911,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ESRB E10+. |
|
|
|
* |
|
|
|
* @return Prints all the ESRB E10+ games. |
|
|
|
*/ |
|
|
|
public String checkEsrbEten() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; |
|
|
@ -1855,6 +1945,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ESRB T. |
|
|
|
* |
|
|
|
* @return Prints all the ESRB T games. |
|
|
|
*/ |
|
|
|
public String checkEsrbT() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; |
|
|
@ -1884,6 +1979,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ESRB M. |
|
|
|
* |
|
|
|
* @return Prints all the ESRB M games. |
|
|
|
*/ |
|
|
|
public String checkEsrbM() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ESRB_Rating FROM Games"; |
|
|
@ -1913,6 +2013,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is CERO A. |
|
|
|
* |
|
|
|
* @return Prints all the CERO A games. |
|
|
|
*/ |
|
|
|
public String checkCeroA() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; |
|
|
@ -1942,6 +2047,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is CERO B. |
|
|
|
* |
|
|
|
* @return Prints all the CERO B games. |
|
|
|
*/ |
|
|
|
public String checkCeroB() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; |
|
|
@ -1971,6 +2081,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is CERO C. |
|
|
|
* |
|
|
|
* @return Prints all the CERO C games. |
|
|
|
*/ |
|
|
|
public String checkCeroC() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; |
|
|
@ -2000,6 +2115,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is CERO D. |
|
|
|
* |
|
|
|
* @return Prints all the CERO D games. |
|
|
|
*/ |
|
|
|
public String checkCeroD() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; |
|
|
@ -2029,6 +2149,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is CERO Z. |
|
|
|
* |
|
|
|
* @return Prints all the CERO Z games. |
|
|
|
*/ |
|
|
|
public String checkCeroZ() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_CERO_Rating FROM Games"; |
|
|
@ -2058,6 +2183,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ACB G. |
|
|
|
* |
|
|
|
* @return Prints all the ACB G games. |
|
|
|
*/ |
|
|
|
public String checkAcbG() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; |
|
|
@ -2087,6 +2217,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ACB PG. |
|
|
|
* |
|
|
|
* @return Prints all the ACB PG games. |
|
|
|
*/ |
|
|
|
public String checkAcbPg() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; |
|
|
@ -2116,6 +2251,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ACB M. |
|
|
|
* |
|
|
|
* @return Prints all the ACB M games. |
|
|
|
*/ |
|
|
|
public String checkAcbM() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; |
|
|
@ -2145,6 +2285,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ACB MA 15+. |
|
|
|
* |
|
|
|
* @return Prints all the ACB MA 15+ games. |
|
|
|
*/ |
|
|
|
public String checkAcbMaFifteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; |
|
|
@ -2174,6 +2319,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game is ACB R 18+. |
|
|
|
* |
|
|
|
* @return Prints all the ACB R 18+ games. |
|
|
|
*/ |
|
|
|
public String checkAcbReighteen() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_ACB_Rating FROM Games"; |
|
|
|