// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   APlayer.java

package model;


// Referenced classes of package model:
//      IRequestor

public abstract class APlayer
{

  public APlayer(IRequestor irequestor, int i)
  {
    nextPlayer = this;
    iRequestor = irequestor;
    player = i;
  }

  public abstract void takeTurn();

  public IRequestor getRequestor()
  {
    return iRequestor;
  }

  public int getPlayer()
  {
    return player;
  }

  public APlayer getNextPlayer()
  {
    return nextPlayer;
  }

  private void setNextPlayer(APlayer aplayer)
  {
    nextPlayer = aplayer;
  }

  public void insertAsRest(APlayer aplayer)
  {
    aplayer.setNextPlayer(getNextPlayer());
    setNextPlayer(aplayer);
  }

  private IRequestor iRequestor;
  private int player;
  private APlayer nextPlayer;
}
