/* File: Player.java - March 2018 */ package l02; /** * The player interface for a basic dice game. A player's toString() method * should return the player's name. * @author Michael Albert */ public interface Player { /** * Set the manager for this player. * * @param m the manager */ public void setManager(Manager m); /** * Return an index in 0,1,2 to replace that die of the dice given with the * roll. Return any other value to reject the roll. * * @param oldRoll the roll offered * @return The index of the die to replace (or out of range if not taking * the roll). */ public int processOldRoll(int oldRoll); /** * Return an index in 0,1,2 to replace that die of the dice given with the * roll. Return any other value to reject the roll. * * @param newRoll the roll offered * @return The index of the die to replace (or out of range if not taking * the roll). */ public int processNewRoll(int newRoll); }