Browse Source

Added Javadoc to Players Category Methods

dev
Adem Berber 3 years ago
parent
commit
22482c59ff
  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

@ -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";

Loading…
Cancel
Save