jaige
Class AIGameStats

java.lang.Object
  extended by jaige.AIGameStats
All Implemented Interfaces:
GameListener, GameOverListener, MoveListener, NewGameListener, TurnListener

public class AIGameStats
extends java.lang.Object
implements MoveListener, TurnListener, NewGameListener, GameOverListener

This class keeps track of statistics throughout an AI matchup. The current stats it keeps track of: wins draws wins / orientation average move time total moves total time

Copyright: Copyright (c) Jaige 2007

Version:
1.0
Author:
Rob Taft

Constructor Summary
AIGameStats()
           
 
Method Summary
 Match getMatchData()
           
 void processGameOverEvent(GameOverEvent event)
           
 void processMoveEvent(MoveEvent event)
           
 void processNewGameEvent(NewGameEvent event)
           
 void processTurnEvent(TurnEvent event)
          Called when the turn changes.
 void reset()
           
 void setOrientations(Orientation... o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AIGameStats

public AIGameStats()
Method Detail

processMoveEvent

public void processMoveEvent(MoveEvent event)
Specified by:
processMoveEvent in interface MoveListener

reset

public void reset()

setOrientations

public void setOrientations(Orientation... o)

processNewGameEvent

public void processNewGameEvent(NewGameEvent event)
Specified by:
processNewGameEvent in interface NewGameListener

processTurnEvent

public void processTurnEvent(TurnEvent event)
Description copied from interface: TurnListener
Called when the turn changes. In the case of an AI, this is only called when it is the AIs turn.

Specified by:
processTurnEvent in interface TurnListener
Parameters:
event - TurnEvent

getMatchData

public Match getMatchData()

processGameOverEvent

public void processGameOverEvent(GameOverEvent event)
Specified by:
processGameOverEvent in interface GameOverListener