Browse Source

Added Javadoc to ESRB Category Methods + Fixed PEGI Javadoc

dev
Adem Berber 2 years ago
parent
commit
caf99c8fea
  1. 25
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

25
projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

@ -1818,6 +1818,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";
@ -1847,6 +1852,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";
@ -1876,6 +1886,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";
@ -1905,6 +1920,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";
@ -1934,6 +1954,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";

Loading…
Cancel
Save