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

Quick Search    Search Deep

org.dma.ihm.game.match
Class Match  view Match download Match.java

java.lang.Object
  extended byorg.dma.ihm.game.match.Match
All Implemented Interfaces:
java.io.Serializable

public class Match
extends java.lang.Object
implements java.io.Serializable

Match class that plays a good game of ice hockey. Contains: - Results - Play method called by event or controller

-- UNDER CONSTRUCTION --


Field Summary
private  org.dma.ihm.game.league.helper.LeagueElement leagueElement
           
private  boolean overtimePlayed
           
private  boolean played
           
private static java.util.Random r
           
private  org.dma.ihm.game.league.Rules rules
           
private  ScoreSheet scoreSheet
           
private  org.dma.ihm.game.team.Team teamAway
           
private  org.dma.ihm.game.team.Team teamHome
           
 
Constructor Summary
Match(org.dma.ihm.game.league.helper.LeagueElement leagueElement, org.dma.ihm.game.team.Team teamHome, org.dma.ihm.game.team.Team teamAway, org.dma.ihm.game.league.Rules rules)
          Constructor for the Match object
 
Method Summary
 boolean _isTeamHomeWinner()
          Returns if teamHome is winner of this match.
 java.lang.String getDescription()
          Gets the description attribute of the Match object
 org.dma.ihm.game.league.helper.LeagueElement getLeagueElement()
          Gets the leagueElement attribute of the Match object
 int getPoints(org.dma.ihm.game.team.Team team)
          Who gets how many points ...
 ScoreSheet getScoreSheet()
          Gets the scoreSheet attribute of the Match object
 org.dma.ihm.game.team.Team getTeamAway()
          Gets the teamAway attribute of the Match object
 org.dma.ihm.game.team.Team getTeamForPlayer(org.dma.ihm.game.player.Player oPlayer)
           
 org.dma.ihm.game.team.Team getTeamHome()
          Gets the teamHome attribute of the Match object
 boolean isGameTied()
          Gets the gameTied attribute of the Match object
 boolean isPlayed()
          Gets the played attribute of the Match object
 boolean isTeamWinner(org.dma.ihm.game.team.Team team)
          Gets the teamWinner attribute of the Match object
 boolean isUserInvolved(org.dma.ihm.controller.data.User user)
          Returns boolean if user passed by is involved in this match
 void play()
          The kick azz play method
private  void playMinute(int period, int minute, boolean suddenDeath)
          Play a minute (EXTREM UNDER CONSTRUCTION)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

teamHome

private org.dma.ihm.game.team.Team teamHome

teamAway

private org.dma.ihm.game.team.Team teamAway

scoreSheet

private ScoreSheet scoreSheet

leagueElement

private org.dma.ihm.game.league.helper.LeagueElement leagueElement

played

private boolean played

rules

private org.dma.ihm.game.league.Rules rules

r

private static java.util.Random r

overtimePlayed

private boolean overtimePlayed
Constructor Detail

Match

public Match(org.dma.ihm.game.league.helper.LeagueElement leagueElement,
             org.dma.ihm.game.team.Team teamHome,
             org.dma.ihm.game.team.Team teamAway,
             org.dma.ihm.game.league.Rules rules)
Constructor for the Match object

Method Detail

isUserInvolved

public boolean isUserInvolved(org.dma.ihm.controller.data.User user)
Returns boolean if user passed by is involved in this match


_isTeamHomeWinner

public boolean _isTeamHomeWinner()
Returns if teamHome is winner of this match.


isTeamWinner

public boolean isTeamWinner(org.dma.ihm.game.team.Team team)
Gets the teamWinner attribute of the Match object


isGameTied

public boolean isGameTied()
Gets the gameTied attribute of the Match object


getLeagueElement

public org.dma.ihm.game.league.helper.LeagueElement getLeagueElement()
Gets the leagueElement attribute of the Match object


getTeamForPlayer

public org.dma.ihm.game.team.Team getTeamForPlayer(org.dma.ihm.game.player.Player oPlayer)

getTeamHome

public org.dma.ihm.game.team.Team getTeamHome()
Gets the teamHome attribute of the Match object


getTeamAway

public org.dma.ihm.game.team.Team getTeamAway()
Gets the teamAway attribute of the Match object


getScoreSheet

public ScoreSheet getScoreSheet()
Gets the scoreSheet attribute of the Match object


getPoints

public int getPoints(org.dma.ihm.game.team.Team team)
Who gets how many points ...


play

public void play()
The kick azz play method


playMinute

private void playMinute(int period,
                        int minute,
                        boolean suddenDeath)
Play a minute (EXTREM UNDER CONSTRUCTION)


isPlayed

public boolean isPlayed()
Gets the played attribute of the Match object


getDescription

public java.lang.String getDescription()
Gets the description attribute of the Match object