net.barkerjr.gameserver
Class Players

java.lang.Object
  extended by net.barkerjr.gameserver.Players

public class Players
extends Object

Contains the players in the server

Since:
2009-05-02
Author:
BarkerJr

Field Summary
 Calendar updated
          The time the players were updated
 
Constructor Summary
Players()
          Create a new collection of players
Players(int capacity)
          Create a new collection of players
 
Method Summary
 Player get(int index)
          Fetches or creates the player for the given index
 Collection<Player> getPlayers()
          Fetches all of the players
 String getUpdated()
          The time the players were last updated
 Collection<Player> values()
          Deprecated. since 2010-03-23, use {getPlayers()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

updated

public Calendar updated
The time the players were updated

Since:
2009-05-02
Constructor Detail

Players

public Players()
Create a new collection of players

Since:
2009-05-02

Players

public Players(int capacity)
Create a new collection of players

Parameters:
capacity - the number of players to expect
Since:
2009-05-02
Method Detail

getUpdated

public String getUpdated()
The time the players were last updated

Returns:
the time the players were last updated
Since:
2009-05-02

get

public Player get(int index)
Fetches or creates the player for the given index

Parameters:
index - the player to fetch
Returns:
the player requested
Since:
2009-05-02

values

@Deprecated
public Collection<Player> values()
Deprecated. since 2010-03-23, use {getPlayers()


getPlayers

public Collection<Player> getPlayers()
Fetches all of the players

Returns:
the players
Since:
2010-03-23