hoplugins.teamAnalyzer.util
Class MatchUtil

java.lang.Object
  extended byhoplugins.teamAnalyzer.util.MatchUtil

public class MatchUtil
extends java.lang.Object

Match Utility Class

Author:
Massimiliano Amato

Constructor Summary
MatchUtil()
           
 
Method Summary
static java.lang.String getMatchType(int type)
          Returns the description code for the match type
static boolean isHome(plugins.IMatchDetails match)
          Check if the match is an homeMatch for the selected team
static boolean isHome(Match match)
          Check if the match is an homeMatch for the selected team
static int result(plugins.IMatchDetails match)
          Returns the result type, as 0 for draw, 1 for wins and -1 for defeat
static int result(Match match)
          Returns the result type, as 0 for draw, 1 for wins and -1 for defeat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatchUtil

public MatchUtil()
Method Detail

isHome

public static boolean isHome(Match match)
Check if the match is an homeMatch for the selected team

Parameters:
match - Match to be analyzed
Returns:
true, if active team playes at home in that match or false if away

isHome

public static boolean isHome(plugins.IMatchDetails match)
Check if the match is an homeMatch for the selected team

Parameters:
match - IMatchDetails to be analyzed
Returns:
true, if active team playes at home in that match or false if away

getMatchType

public static java.lang.String getMatchType(int type)
Returns the description code for the match type

Parameters:
type - int type of match
Returns:
A string code

result

public static int result(Match match)
Returns the result type, as 0 for draw, 1 for wins and -1 for defeat

Parameters:
match - Match to be analyzed
Returns:
result code

result

public static int result(plugins.IMatchDetails match)
Returns the result type, as 0 for draw, 1 for wins and -1 for defeat

Parameters:
match - IMatchDetails to be analyzed
Returns:
result code


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.