亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? match.java

?? This project does not contain a full, runnable application program. Instead, the only package ope.fo
?? JAVA
字號(hào):
package ope.football;

import java.util.ArrayList;

/**
 * The class <CODE>Match</CODE> represents match results in a 
 * football match statistics program. A match is played
 * between teams from two clubs: a home club and an away club. 
 * Goals scored by players from either team can be added
 * to the match object with the method <CODE>addGoal</CODE>.
 * The class is expected to be used so that a match object is
 * initially creates as a real-life match starts and goals are
 * added incrementally as the match progresses.
 */
public class Match {

  private Club homeClub;                    // fixed value
  private ArrayList<Player> homeScorers;    // container: players who have scored for the home team
  private Club awayClub;                    // fixed value
  private ArrayList<Player> awayScorers;    // container: players who have scored for the away team

  
  /**
   * Constructs a match between teams of the given clubs,
   * with no goals scored (yet).
   * 
   * @param homeClub the club whose team plays at home in the match
   * @param awayClub the club whose team plays away in the match
   */
  public Match(Club homeClub, Club awayClub) {
  	this.homeClub = homeClub;
  	this.awayClub = awayClub;
  	this.homeScorers = new ArrayList<Player>();
  	this.awayScorers = new ArrayList<Player>();  	
  }
  

  /**
   * Returns the club who hosts the match.
   * 
   * @return home club
   */
  public Club getHomeClub() {
    return this.homeClub;
  }
  
  
  /**
   * Returns the club who is visiting the home club to play the match.
   * 
   * @return away club
   */
  public Club getAwayClub() {
    return this.awayClub;
  }
  
  
  /**
   * Records a goal as having been scored in the match.
   * Whether the goal is a home goal or an away goal is
   * determined by checking the employer of the given
   * goalscorer. (If the given scorer is not employed by
   * either club, the method does nothing.)
   * 
   * @param scorer the player who scored the goal
   */
  public void addGoal(Player scorer) {
    if(scorer.getEmployer() == this.awayClub) 
    	this.awayScorers.add(scorer);
    if (scorer.getEmployer() == this.homeClub)
    	this.homeScorers.add(scorer);
  }

  
  /**
   * Returns the number of goals scored by the home team.
   * 
   * @return home team's goal count
   */
  public int getHomeGoals() {
    return this.homeScorers.size();
  }
  

  /**
   * Returns the number of goals scored by the away team.
   * 
   * @return away team's goal count
   */
  public int getAwayGoals() {
    return this.awayScorers.size();
  }
  

  /**
   * Returns the total number of goals scored by 
   * the two teams.
   * 
   * @return total goal count
   */
  public int getTotalGoals() {
  	return this.getHomeGoals() + this.getAwayGoals();
  }
  

  /**
   * Returns the goal difference of the match. If the home
   * team won, a positive integer indicating the win margin
   * is returned. Similarly, a negative integer indicates an
   * away win. A tied match has a goal difference of zero.
   * 
   * @return goal difference 
   */
  public int getGoalDifference() {
    return this.getHomeGoals() - this.getAwayGoals();
  }


  /**
   * Returns the club whose team won the match (or is about to
   * win it, assuming the current result stands). That is,
   * returns the club who has scored more goals than the other
   * one.
   * 
   * @return winning team or <CODE>null</CODE> if the game is tied
   */
  public Club getWinner() {
    if (this.getHomeGoals() < this.getAwayGoals())
    	return this.awayClub;
    else if 
    (this.getHomeGoals() > this.getAwayGoals())
    	return this.homeClub;
    else 
    	return null;
  }
  

  /**
   * Returns the player who scored the so-called "winning goal".
   * The winning goal of a match is the first goal for the winning
   * team scoring which was "necessary" in light of the match scoreline.
   * For instance, if the score is 4-2 to the home team, then the
   * third goal scored by the home team is the "winning goal". 
   * A tied match has no winning goal or winning goal scorer.
   * 
   * @return winning goal scorer, or <CODE>null</CODE> in case of a tie
   */
  public Player getWinningGoalScorer() {
    int goalDifference = this.getGoalDifference();
    
    if (goalDifference < 0) 
      
    return this.awayScorers.get(this.homeScorers.size());
    
    else if 
    (goalDifference > 0) 
    
      return this.homeScorers.get(this.awayScorers.size());
    else 
    
      return null;
   
  }
  
  
}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩精品一区二区三区 | 精品国产一区二区三区四区四| 一区在线观看免费| 国产成人免费视频精品含羞草妖精| 欧美大片免费久久精品三p| 免费精品视频最新在线| 欧美mv日韩mv| 国产裸体歌舞团一区二区| 国产喷白浆一区二区三区| 成人国产视频在线观看| 亚洲精品乱码久久久久久久久| 色综合久久久久久久久| 国产电影精品久久禁18| 国产女人18毛片水真多成人如厕| 成人免费视频国产在线观看| 亚洲精品中文在线| 欧美精品 国产精品| 国产在线精品一区二区| 国产精品欧美极品| 欧美日韩精品欧美日韩精品| 免费在线看一区| 欧美激情综合五月色丁香小说| 99国产精品国产精品毛片| 亚洲一区av在线| 亚洲精品一区二区三区影院 | 亚洲综合色视频| 日韩免费观看高清完整版在线观看| 久久99国产精品久久| 日本一区二区高清| 欧美色偷偷大香| 国产精品一卡二卡| 亚洲综合男人的天堂| 日韩三级电影网址| 99精品欧美一区| 青青草国产成人av片免费| 久久精品水蜜桃av综合天堂| 在线亚洲免费视频| 国产一区二区三区四| 国产精品久久久久久久久搜平片 | 亚洲午夜av在线| 亚洲精品欧美专区| 欧美tickling网站挠脚心| av高清不卡在线| 麻豆成人av在线| 一区二区三区四区国产精品| 欧美mv和日韩mv的网站| 欧美综合一区二区| 成人免费视频一区二区| 久久精品国产99国产| 亚洲欧美色一区| 欧美韩国日本综合| 亚洲精品一区二区三区蜜桃下载 | 欧美一区二区三区视频免费播放 | 国产一区二区毛片| 日本在线不卡一区| 亚洲精品乱码久久久久久日本蜜臀| 精品精品国产高清a毛片牛牛| 欧美三片在线视频观看| 色婷婷综合久久久久中文一区二区| 国内精品第一页| 蜜桃av噜噜一区| 日韩精品高清不卡| 亚洲国产日韩a在线播放性色| 国产精品高潮呻吟久久| 久久精品一二三| 2024国产精品| 日韩一级片在线播放| 91视频在线看| 成人涩涩免费视频| 国产精品66部| 国产盗摄一区二区| 国产一区二区在线观看视频| 日本欧美在线看| 日本美女一区二区三区视频| 亚洲国产wwwccc36天堂| 亚洲午夜成aⅴ人片| 亚洲资源中文字幕| 亚洲国产日韩精品| 爽好久久久欧美精品| 午夜精品福利视频网站| 五月激情丁香一区二区三区| 日日欢夜夜爽一区| 免费成人在线影院| 久久国内精品自在自线400部| 麻豆精品久久精品色综合| 日韩高清一区在线| 91首页免费视频| 欧美专区日韩专区| 91麻豆精品91久久久久久清纯| 欧美日韩大陆在线| 日韩精品一区二区在线| 精品国产乱码久久久久久久久| 日韩精品中文字幕一区| 久久亚洲欧美国产精品乐播| 久久久777精品电影网影网 | 中文字幕中文字幕一区二区| 国产精品传媒入口麻豆| 亚洲男同1069视频| 亚洲国产精品天堂| 奇米一区二区三区| 国产麻豆视频一区| 91色九色蝌蚪| 欧美日韩国产片| 欧美不卡123| 国产精品女人毛片| 亚洲高清中文字幕| 毛片不卡一区二区| 不卡一二三区首页| 欧美色图激情小说| 精品黑人一区二区三区久久| 国产精品美女久久久久久久| 亚洲国产乱码最新视频 | 在线观看日产精品| 日韩一区二区三区免费看 | 色婷婷av一区二区| 欧美巨大另类极品videosbest| 日韩免费高清视频| 亚洲天堂av一区| 日本成人中文字幕| 色综合久久中文综合久久97| 日韩一区二区中文字幕| 国产精品麻豆99久久久久久| 午夜精品一区在线观看| 国产精品66部| 宅男噜噜噜66一区二区66| 国产精品女同一区二区三区| 五月天丁香久久| 97超碰欧美中文字幕| 日韩一区二区电影| 亚洲精品成a人| 国产精品99久久久久久有的能看| 色诱亚洲精品久久久久久| 精品国产欧美一区二区| 亚洲一区在线看| 国产传媒久久文化传媒| 制服.丝袜.亚洲.另类.中文| 综合久久国产九一剧情麻豆| 精彩视频一区二区| 欧美电影在线免费观看| 中文字幕一区二区不卡 | 久久久久久免费| 日韩精品一二三| 91小视频在线| 日本一区二区综合亚洲| 秋霞av亚洲一区二区三| 欧美视频你懂的| 亚洲免费观看在线视频| 国产v日产∨综合v精品视频| 91精品国产91热久久久做人人 | 2021久久国产精品不只是精品| 一区二区三区在线高清| 成人深夜福利app| 久久在线观看免费| 蜜桃av噜噜一区| 欧美精三区欧美精三区 | 亚洲精品老司机| 国产白丝网站精品污在线入口| 欧美成人一区二区| 日韩综合在线视频| 欧美日韩一区成人| 五月婷婷综合激情| 欧美日韩国产在线播放网站| 一区二区三区成人| 99精品久久久久久| 亚洲欧洲av另类| 成人丝袜18视频在线观看| 亚洲精品在线三区| 另类小说视频一区二区| 欧美videofree性高清杂交| 久久精品av麻豆的观看方式| 日韩一区二区三区在线观看 | 亚洲欧美视频在线观看视频| 国产成人鲁色资源国产91色综 | 日韩欧美在线一区二区三区| 天天av天天翘天天综合网色鬼国产| 欧美在线免费观看视频| 亚洲一级片在线观看| 欧洲日韩一区二区三区| 一区二区欧美精品| 欧美日韩视频专区在线播放| 五月综合激情网| 日韩精品一区二| 国产精品88av| 亚洲天堂精品视频| 欧美三级电影一区| 日韩成人免费看| 精品国产乱码久久久久久久| 国产91露脸合集magnet| 国产精品美女一区二区三区| 91视频在线看| 性做久久久久久久免费看| 日韩亚洲电影在线| 国产精品88888| 亚洲婷婷综合久久一本伊一区| 色88888久久久久久影院野外| 午夜婷婷国产麻豆精品| 久久综合给合久久狠狠狠97色69| 成人精品国产一区二区4080| 亚洲国产一区二区三区青草影视 | 免费一区二区视频|