blob: 2dfe2abb9f4e05ea31abf84b740675a104dfa918 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package jrummikub.control.turn;
import jrummikub.model.GameSettings;
import jrummikub.model.IPlayer;
import jrummikub.model.ITable;
import jrummikub.util.IEvent;
import jrummikub.view.IView;
/**
* Interface containing shared methods of human and computer turn control
*
*/
public interface ITurnControl {
/**
* Start the turn
*
* @param settings
* the game settings
* @param player
* the active player
* @param table
* current table
* @param view
* view for user interaction.
* @param turnMode
* whether it is turn zero and if one may redeal
*/
public void setup(GameSettings settings, IPlayer player, ITable table,
IView view, TurnMode turnMode);
/**
* Get the event that is emitted when the turn is over
*
* @return end of turn event
*/
public IEvent getEndOfTurnEvent();
/**
* Emitted when the round is aborted and needs to be restarted
*
* @return the event
*/
public IEvent getRedealEvent();
/**
* Start the turn
*/
public abstract void startTurn();
}
|