ru.ifmo.knim.main
Class GamePlay

java.lang.Object
  extended byru.ifmo.knim.main.GamePlay

public class GamePlay
extends java.lang.Object

Something that aggregates gameInfo and modelEngine.

Author:
Anthony Yakovlev

Constructor Summary
GamePlay()
          Default constructor
 
Method Summary
 void aiStartup()
          Starts AI automata to process current situation
 GameInfo getGameInfo()
          Gets game information
static GamePlay getGamePlay()
          Returns singleton object
 void init(com.evelopers.unimod.runtime.ModelEngine modelEngine)
          Initializes singleton object
 void resendMove(MoveResult move)
          Resends specifired move data
 void restart()
          Restarts game
 void sendSafeMove()
          Computes and makes move using the safe strategy
 void sendUnsafeMove()
          Computes and makes move using the unsafe strategy
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GamePlay

public GamePlay()
Default constructor

Method Detail

init

public void init(com.evelopers.unimod.runtime.ModelEngine modelEngine)
Initializes singleton object

Parameters:
modelEngine -

getGamePlay

public static GamePlay getGamePlay()
Returns singleton object

Returns:
gamePlay object

getGameInfo

public GameInfo getGameInfo()
Gets game information

Returns:
the game information

restart

public void restart()
Restarts game


aiStartup

public void aiStartup()
Starts AI automata to process current situation


sendSafeMove

public void sendSafeMove()
Computes and makes move using the safe strategy


resendMove

public void resendMove(MoveResult move)
Resends specifired move data


sendUnsafeMove

public void sendUnsafeMove()
Computes and makes move using the unsafe strategy