// ============================================================================
// File:               $File$
//
// Project:            
//
// Purpose:            
//
// Author:             Rammi
//
// Copyright Notice:   (c) 2008  Rammi (rammi@caff.de)
//
// Latest change:      $Date$
//
// History:	       $Log$
//=============================================================================
package de.caff.asteroid.rammi;

import de.caff.asteroid.Communication;
import de.caff.asteroid.PlayerStarter;
import de.caff.asteroid.TimedScorePrinter;

/**
 */
public class SimPlayerStarter
        implements PlayerStarter
{
  /**
   * Start the player.
   * It is assumed that this method returns after starting the player.
   *
   * @param com communication access
   */
  public void startPlayer(Communication com)
  {
    SimulatedAnnealingPlayer player = new SimulatedAnnealingPlayer(com);
    com.addFrameListener(player);
    com.addFrameListener(new TimedScorePrinter(SimulatedAnnealingPlayer.FRAMES_COUNT));
  }
}
