Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.dma.ihm.game.player
Class PlayerStats  view PlayerStats download PlayerStats.java

java.lang.Object
  extended byorg.dma.ihm.lib.CustomComparator
      extended byorg.dma.ihm.game.player.PlayerStats
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public abstract class PlayerStats
extends org.dma.ihm.lib.CustomComparator

Player stats (analog to the team stats)


Field Summary
private  int assists
          Assists
private  int gamesPlayed
          Games played
private  int goals
          Goals
private  java.lang.Object owner
          Owner of this stats
private  int penaltyMinutes
          Penalty minutes
private  Player player
          Player of thist stats
static int SORT_ASSISTS
          Sort by assists
static int SORT_GAMES_PLAYED
          Sort by games played
static int SORT_GOALS
          Sort by goals
static int SORT_PENALTY_MINUTES
          Sort by penalty minutes
static int SORT_POSITION
          Sort by position (outside param)
static int SORT_SCORER_POINTS
          Sort by scorer points
 
Fields inherited from class org.dma.ihm.lib.CustomComparator
ascending, sortCriteria
 
Constructor Summary
PlayerStats(Player player, java.lang.Object owner)
          Constructs new playerStats for a owner
 
Method Summary
 void addAssists(int assists)
          Adds a feature to the Assists attribute of the PlayerStats object
 void addGamesLost(int losts)
          Adds a feature to the GamesWon attribute of the PlayerStats object
 void addGamesPlayed(int played)
          Add played games to teamStats
 void addGamesTied(int ties)
          Adds a feature to the GamesTied attribute of the PlayerStats object
 void addGamesWon(int wins)
          Adds a feature to the GamesWon attribute of the PlayerStats object
 void addGoals(int goals)
          Adds a feature to the Goals attribute of the PlayerStats object
 void addPenaltyMinutes(int penaltyMinutes)
          Adds a feature to the PenaltyMinutes attribute of the PlayerStats object
 java.lang.Object clone()
          Clone the object
 int getAssists()
          Gets the assists attribute of the PlayerStats object
 int getGamesPlayed()
          Gets the gamesPlayed attribute of the PlayerStats object
 int getGoals()
          Gets the goals attribute of the PlayerStats object
 java.lang.Object getOwner()
          Gets the owner attribute of the PlayerStats object
 int getPenaltyMinutes()
          Gets the penaltyMinutes attribute of the PlayerStats object
 Player getPlayer()
          Gets the player attribute of the PlayerStats object
 int getScorerPoints()
          Gets the scorerPoints attribute of the PlayerStats object
protected  int getSortValue()
          Returns sort value considering sortCriteria
 
Methods inherited from class org.dma.ihm.lib.CustomComparator
compareTo, setSortCriteria, setSortOrder
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SORT_GOALS

public static final int SORT_GOALS
Sort by goals

See Also:
Constant Field Values

SORT_ASSISTS

public static final int SORT_ASSISTS
Sort by assists

See Also:
Constant Field Values

SORT_SCORER_POINTS

public static final int SORT_SCORER_POINTS
Sort by scorer points

See Also:
Constant Field Values

SORT_GAMES_PLAYED

public static final int SORT_GAMES_PLAYED
Sort by games played

See Also:
Constant Field Values

SORT_PENALTY_MINUTES

public static final int SORT_PENALTY_MINUTES
Sort by penalty minutes

See Also:
Constant Field Values

SORT_POSITION

public static final int SORT_POSITION
Sort by position (outside param)

See Also:
Constant Field Values

goals

private int goals
Goals


assists

private int assists
Assists


gamesPlayed

private int gamesPlayed
Games played


penaltyMinutes

private int penaltyMinutes
Penalty minutes


player

private Player player
Player of thist stats


owner

private java.lang.Object owner
Owner of this stats

Constructor Detail

PlayerStats

public PlayerStats(Player player,
                   java.lang.Object owner)
Constructs new playerStats for a owner

Method Detail

getGoals

public int getGoals()
Gets the goals attribute of the PlayerStats object


getPlayer

public Player getPlayer()
Gets the player attribute of the PlayerStats object


getAssists

public int getAssists()
Gets the assists attribute of the PlayerStats object


getScorerPoints

public int getScorerPoints()
Gets the scorerPoints attribute of the PlayerStats object


getGamesPlayed

public int getGamesPlayed()
Gets the gamesPlayed attribute of the PlayerStats object


getPenaltyMinutes

public int getPenaltyMinutes()
Gets the penaltyMinutes attribute of the PlayerStats object


addGamesWon

public void addGamesWon(int wins)
Adds a feature to the GamesWon attribute of the PlayerStats object


addGamesTied

public void addGamesTied(int ties)
Adds a feature to the GamesTied attribute of the PlayerStats object


addGamesLost

public void addGamesLost(int losts)
Adds a feature to the GamesWon attribute of the PlayerStats object


addGoals

public void addGoals(int goals)
Adds a feature to the Goals attribute of the PlayerStats object


addAssists

public void addAssists(int assists)
Adds a feature to the Assists attribute of the PlayerStats object


addPenaltyMinutes

public void addPenaltyMinutes(int penaltyMinutes)
Adds a feature to the PenaltyMinutes attribute of the PlayerStats object


addGamesPlayed

public void addGamesPlayed(int played)
Add played games to teamStats


getOwner

public java.lang.Object getOwner()
Gets the owner attribute of the PlayerStats object


getSortValue

protected int getSortValue()
Returns sort value considering sortCriteria


clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone the object