fourwin
Class FourHuman

java.lang.Object
  extended by fourwin.FourPlayer
      extended by fourwin.FourHuman

public class FourHuman
extends FourPlayer

This class implements the given methods from fourPlayer and represents the human player.

Author:
Konstantin

Field Summary
(package private)  FourGUI gui
           
 
Fields inherited from class fourwin.FourPlayer
color, colorValue, opponentID, playerID
 
Constructor Summary
FourHuman(FourGUI gui)
           
FourHuman(FourGUI gui, int playerID)
           
 
Method Summary
 PlayingField move(PlayingField board)
          This method controls the moves from the human player.
 
Methods inherited from class fourwin.FourPlayer
getColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

FourGUI gui
Constructor Detail

FourHuman

public FourHuman(FourGUI gui)

FourHuman

public FourHuman(FourGUI gui,
                 int playerID)
Method Detail

move

public PlayingField move(PlayingField board)
This method controls the moves from the human player. It gets the actual board, inserts the chip in the column the human player wants and returns the new board.

Specified by:
move in class FourPlayer
Parameters:
board - - the actual played board
Returns:
the new board with the inserted chip