Fixed all warnings (comments) but one, one TODO important
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@351 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
f1abd1b564
commit
c3b4eef14c
7 changed files with 75 additions and 18 deletions
|
@ -7,22 +7,27 @@ import jrummikub.util.Event;
|
|||
import jrummikub.util.IEvent;
|
||||
import jrummikub.view.IView;
|
||||
|
||||
/**
|
||||
* Interface containing shared methods of human and computer turn control
|
||||
*
|
||||
*/
|
||||
// TODO zu viele parameter
|
||||
public interface ITurnControl {
|
||||
/**
|
||||
* Start the turn
|
||||
*
|
||||
* @param settings
|
||||
* the game settings
|
||||
* the game settings
|
||||
* @param player
|
||||
* the active player
|
||||
* the active player
|
||||
* @param table
|
||||
* current table
|
||||
* current table
|
||||
* @param view
|
||||
* view for user interaction.
|
||||
* view for user interaction.
|
||||
* @param inspectOnly
|
||||
* the current turn doesn't allow any table manipulation
|
||||
* the current turn doesn't allow any table manipulation
|
||||
* @param mayRedeal
|
||||
* true when the current player may decide to redeal
|
||||
* true when the current player may decide to redeal
|
||||
*/
|
||||
public void setup(GameSettings settings, IPlayer player, ITable table,
|
||||
IView view, boolean inspectOnly, boolean mayRedeal);
|
||||
|
|
|
@ -16,8 +16,16 @@ public abstract class TurnControlFactory {
|
|||
COMPUTER
|
||||
};
|
||||
|
||||
|
||||
public abstract ITurnControl create();
|
||||
|
||||
/**
|
||||
* returns the turn control factory for the specified type
|
||||
*
|
||||
* @param type
|
||||
* Human or Computer
|
||||
* @return TurnControlFactory for the player kind
|
||||
*/
|
||||
static public TurnControlFactory getFactory(Type type) {
|
||||
switch (type) {
|
||||
case HUMAN:
|
||||
|
|
Reference in a new issue