gecco.game.dke
Class DKEReferee

java.lang.Object
  |
  +--gecco.server.referee.Referee
        |
        +--gecco.game.dke.DKEReferee
Direct Known Subclasses:
DKE3Referee

public class DKEReferee
extends Referee

Referee.java Created: Fri Jan 17 10:56:31 2003

Author:
Hans Sandström

Field Summary
protected  boolean blueObjectiveObtained
           
protected  int blueRemainingUnits
           
protected  int blueScore
           
protected  int blueScorePointPoints
           
protected  VictoryPoint blueVictoryPoint
           
protected  Point blueVPPos
           
protected  int blueWarUnitsPoints
           
protected  int gameType
           
protected  boolean isGameEnded
           
protected  boolean isVictoryPointsFound
           
protected  boolean redObjectiveObtained
           
protected  int redRemainingUnits
           
protected  int redScore
           
protected  int redScorePointPoints
           
protected  VictoryPoint redVictoryPoint
           
protected  Point redVPPos
           
protected  int redWarUnitsPoints
           
protected  int winningForce
           
 
Constructor Summary
DKEReferee()
           
 
Method Summary
protected  void calculateScore()
           
protected  void calculateScoreFromWarUnits()
           
protected  void coffeeBreak()
           
protected  Vector filterOutScorePoints(Collection c)
           
protected  Vector filterOutVictoryPoints(Collection c)
           
protected  Vector filterOutWarUnits(Collection c)
           
 void findVictoryPoints()
           
protected  void gameOver()
           
 boolean isGameWon()
           
 void lastVisitorChanged(int newVisitor)
           
 void newOwnerOfGameEventPoint(GameEventPoint gep)
           
protected  Vector sortScorePoints(Vector inputVector)
           
 void startReferee()
           
protected  void stopGame()
           
 void testForWinnerOnPoints()
           
 void timeIsUp(double time)
           
 void writeResult()
           
 
Methods inherited from class gecco.server.referee.Referee
showScore, timeIsUp, unitConqured, unitDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blueObjectiveObtained

protected boolean blueObjectiveObtained

redObjectiveObtained

protected boolean redObjectiveObtained

isVictoryPointsFound

protected boolean isVictoryPointsFound

isGameEnded

protected boolean isGameEnded

blueVictoryPoint

protected VictoryPoint blueVictoryPoint

redVictoryPoint

protected VictoryPoint redVictoryPoint

blueVPPos

protected Point blueVPPos

redVPPos

protected Point redVPPos

winningForce

protected int winningForce

blueScore

protected int blueScore

blueScorePointPoints

protected int blueScorePointPoints

blueWarUnitsPoints

protected int blueWarUnitsPoints

redScore

protected int redScore

redScorePointPoints

protected int redScorePointPoints

redWarUnitsPoints

protected int redWarUnitsPoints

blueRemainingUnits

protected int blueRemainingUnits

redRemainingUnits

protected int redRemainingUnits

gameType

protected int gameType
Constructor Detail

DKEReferee

public DKEReferee()
Method Detail

startReferee

public void startReferee()
Overrides:
startReferee in class Referee

timeIsUp

public void timeIsUp(double time)

newOwnerOfGameEventPoint

public void newOwnerOfGameEventPoint(GameEventPoint gep)

findVictoryPoints

public void findVictoryPoints()

isGameWon

public boolean isGameWon()

lastVisitorChanged

public void lastVisitorChanged(int newVisitor)

testForWinnerOnPoints

public void testForWinnerOnPoints()

calculateScore

protected void calculateScore()

calculateScoreFromWarUnits

protected void calculateScoreFromWarUnits()

filterOutWarUnits

protected Vector filterOutWarUnits(Collection c)

filterOutScorePoints

protected Vector filterOutScorePoints(Collection c)

filterOutVictoryPoints

protected Vector filterOutVictoryPoints(Collection c)

sortScorePoints

protected Vector sortScorePoints(Vector inputVector)

stopGame

protected void stopGame()

gameOver

protected void gameOver()

coffeeBreak

protected void coffeeBreak()

writeResult

public void writeResult()