Advertisement
Chiddix

Team

Jun 20th, 2014
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package me.rabrg.loadout.game.team;
  2.  
  3. import java.util.Vector;
  4.  
  5. import org.bukkit.entity.Player;
  6.  
  7. /**
  8.  * Represents a single team in a loadout game.
  9.  * @author Ryan Greene
  10.  *
  11.  */
  12. final class Team {
  13.  
  14.     /**
  15.      * The players that are currently on the team.
  16.      */
  17.     private final Vector<Player> players;
  18.  
  19.     /**
  20.      * Constructs a new team with the specified team size;
  21.      * @param teamSize The size of the team.
  22.      */
  23.     Team(final int teamSize) {
  24.         this.players = new Vector<Player>(teamSize);
  25.     }
  26.  
  27.     /**
  28.      * Gets the players that are currently on the team.
  29.      * @return The players that are currently on the team.
  30.      */
  31.     Vector<Player> getPlayers() {
  32.         return players;
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement