jskat.player.AIPlayerMJL
Class GameInfo

java.lang.Object
  extended by jskat.player.AIPlayerMJL.GameInfo

public class GameInfo
extends java.lang.Object

Author:
Markus J. Luzius

Constructor Summary
GameInfo()
          default constructor
GameInfo(int type, int suit, int player)
          Constructor for setting up the game info with initial values
 
Method Summary
 int getGameType()
          get the current game type
 int getSinglePlayer()
          get the current single player
 int getTrump()
          get the current trump suit
 void setGameType(int gameType)
          set the current game type
 void setSinglePlayer(int id)
          set the current single player
 void setTrump(int suit)
          set the trump suit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameInfo

public GameInfo()
default constructor


GameInfo

public GameInfo(int type,
                int suit,
                int player)
Constructor for setting up the game info with initial values

Parameters:
type - game type
suit - trump color
player - id of the single player
Method Detail

getGameType

public int getGameType()
get the current game type

Returns:
current game type

getSinglePlayer

public int getSinglePlayer()
get the current single player

Returns:
ID of the current single player

getTrump

public int getTrump()
get the current trump suit

Returns:
current trump suit

setGameType

public void setGameType(int gameType)
set the current game type

Parameters:
gameType - game type

setSinglePlayer

public void setSinglePlayer(int id)
set the current single player

Parameters:
id - ID of the single player

setTrump

public void setTrump(int suit)
set the trump suit

Parameters:
suit - trump suit