mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
Asserting action count in tests. minor changes.
This commit is contained in:
parent
ef92e006d0
commit
de6d1bf46b
7 changed files with 33 additions and 8 deletions
|
|
@ -204,6 +204,7 @@ public interface Player extends MageItem, Copyable<Player> {
|
|||
boolean isTestMode();
|
||||
void setTestMode(boolean value);
|
||||
void addAction(String action);
|
||||
int getActionCount();
|
||||
void setAllowBadMoves(boolean allowBadMoves);
|
||||
|
||||
void init(Game game);
|
||||
|
|
|
|||
|
|
@ -2220,6 +2220,11 @@ public abstract class PlayerImpl implements Player, Serializable {
|
|||
// do nothing
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getActionCount() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setAllowBadMoves(boolean allowBadMoves) {
|
||||
// do nothing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue