[Hattrickirc-commitlog] HattrickIRC/src/org/hattrick/hattrickirc/data Match.java, 1.2, 1.3 MatchMa
Status: Beta
Brought to you by:
suls
From: Mathias S. <su...@us...> - 2006-10-01 17:41:11
|
Update of /cvsroot/hattrickirc/HattrickIRC/src/org/hattrick/hattrickirc/data In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv20808/src/org/hattrick/hattrickirc/data Modified Files: Match.java MatchManager.java Event.java Log Message: Changes from Boy van der Werf (nethyperon) Index: Event.java =================================================================== RCS file: /cvsroot/hattrickirc/HattrickIRC/src/org/hattrick/hattrickirc/data/Event.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Event.java 5 Feb 2005 16:46:29 -0000 1.1 +++ Event.java 1 Oct 2006 17:41:07 -0000 1.2 @@ -72,6 +72,15 @@ int getObjectPlayerId(); /** + * Object that, for goals and chances, is indicating the attacking team. + * For other event, this field usually indicates the team that is doing + * something. It may indicate other things for other events. + * + * @return the subject teamId + */ + int getSubjectTeamId(); + + /** * A hattrick <code>EventKey</code> is constructed with a major and * minor number. Example: * <pre><EventKey>510_2</EventKey></pre> @@ -94,14 +103,6 @@ * * @return event text */ - String getEventText(); + String getEventText(Match match); - /** - * Object that, for goals and chances, is indicating the attacking team. - * For other event, this field usually indicates the team that is doing - * something. It may indicate other things for other events. - * - * @return the subject team - */ - Team getSubjectTeam(); } Index: Match.java =================================================================== RCS file: /cvsroot/hattrickirc/HattrickIRC/src/org/hattrick/hattrickirc/data/Match.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Match.java 6 Feb 2005 21:19:31 -0000 1.2 +++ Match.java 1 Oct 2006 17:41:07 -0000 1.3 @@ -80,6 +80,13 @@ */ int getHomeGoals(); + /** + * The current number of minutes a match is in. + * + * @return Match time + */ + int getMinute(); + /** * Returns the container for all events. * Index: MatchManager.java =================================================================== RCS file: /cvsroot/hattrickirc/HattrickIRC/src/org/hattrick/hattrickirc/data/MatchManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- MatchManager.java 5 Feb 2005 16:46:30 -0000 1.1 +++ MatchManager.java 1 Oct 2006 17:41:07 -0000 1.2 @@ -25,6 +25,7 @@ package org.hattrick.hattrickirc.data; +import java.util.Date; import java.util.Map; @@ -40,7 +41,7 @@ * @param matchId * @return The added match */ - Match addMatch(int matchId); + Match addMatch(String matchId) throws Exception; /** * Removes a match @@ -48,7 +49,15 @@ * @param matchId * @return The deleted match */ - Match removeMatch(int matchId); + Match removeMatch(String matchId) throws Exception; + + /** + * Returns a registered a match + * + * @param matchId + * @return The registered match + */ + Match getMatch(String matchId); /** * Returns all registered matches @@ -57,4 +66,6 @@ */ Map getMatches(); + Date getRefreshDate(); + } |