shuffle uses incTime, doAction no longer calls incTime as it breaks caching of game states, time remove from game state
parent
1515bb6cd5
commit
3b7136af14
|
@ -116,7 +116,7 @@ public class MagicCardList extends ArrayList<MagicCard> {
|
|||
}
|
||||
|
||||
public void shuffle() {
|
||||
shuffle(MagicGame.getInstance().getTime());
|
||||
shuffle(MagicGame.getInstance().incTime());
|
||||
}
|
||||
|
||||
public void shuffle(final long seed) {
|
||||
|
|
|
@ -239,7 +239,6 @@ public class MagicGame {
|
|||
getPayedCost().getX(),
|
||||
stack.getItemsId(),
|
||||
events.getEventsId(),
|
||||
time,
|
||||
//identifiers[0],
|
||||
//identifiers[1],
|
||||
//identifiers[2],
|
||||
|
@ -480,9 +479,6 @@ public class MagicGame {
|
|||
|
||||
//performing actions update the score
|
||||
score += action.getScore(scorePlayer);
|
||||
|
||||
//increment the time
|
||||
incTime();
|
||||
}
|
||||
|
||||
public void undoActions() {
|
||||
|
|
Loading…
Reference in New Issue