soccerclient.datamanager
Class Score

java.lang.Object
  |
  +--soccerclient.datamanager.Score
All Implemented Interfaces:
java.io.Serializable

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

Überschrift: Score

Beschreibung: In this class the score of the game is safed.

Copyright: Copyright (c) 2002

Organisation: pm39

Author:
J.F.G
See Also:
Serialized Form

Constructor Summary
Score()
          Creates a new Score instance with 0 : 0
Score(int left, int right)
          Creates a new Score
 
Method Summary
 int getLeftScore()
          Returns the score of the left team
 int getRightScore()
          Returns the score of the right team
 void setScore(int left, int right)
          Sets the value of the score
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Score

public Score()
Creates a new Score instance with 0 : 0

Score

public Score(int left,
             int right)
Creates a new Score
Parameters:
left - a int value specifying score of left team
right - a int value specifying score of right team
Method Detail

setScore

public void setScore(int left,
                     int right)
Sets the value of the score
Parameters:
left - a int value specifying score of left team
right - a int value specifying score of right team

getLeftScore

public int getLeftScore()
Returns the score of the left team
Returns:
a Score containing the score of the left team

getRightScore

public int getRightScore()
Returns the score of the right team
Returns:
a Score containing the score of the right team