Back to project page BoardGameDirector.
The source code is released under:
GNU General Public License
If you think the Android project BoardGameDirector listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.dilph.bgd.engine; // w w w . jav a 2 s . co m /** * Created with IntelliJ IDEA. * User: pseudo * Date: 8/3/13 * Time: 11:09 AM * To change this template use File | Settings | File Templates. */ /** * Represents a turn. Each player has a turn. */ public class Turn { private final TurnEvent initialTurnEvent; TurnEvent currentTurnEvent; public Turn(TurnEvent turnEvent) { initialTurnEvent = currentTurnEvent = turnEvent; } public TurnEvent getCurrentTurnEvent() { return currentTurnEvent; } public void start() { //To change body of created methods use File | Settings | File Templates. } public void next(boolean response) { currentTurnEvent = (currentTurnEvent).getNext(response); } /** * Resets the turn to the initialturnEvent */ public void reset() { currentTurnEvent = initialTurnEvent; CounterManager.getInstance().resetTurnCounters(); } }