Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int totalPlayers;
- public static int maxPlayers = 10;
- // Public Methods
- public Player()
- {
- totalPlayers++;
- }
- public static boolean gameFull(){
- if(totalPlayers >= maxPlayers){
- return true;
- }
- else{
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement