| 1 | package com.takenoko.weather; | |
| 2 | ||
| 3 | import com.takenoko.actions.Action; | |
| 4 | import com.takenoko.actions.weather.ChooseAndApplyWeatherAction; | |
| 5 | import com.takenoko.engine.Board; | |
| 6 | import com.takenoko.engine.BotManager; | |
| 7 | import java.util.List; | |
| 8 | ||
| 9 | /** Weather that makes the player choose a weather from the deck. */ | |
| 10 | public class QuestionMark extends Weather { | |
| 11 | @Override | |
| 12 | public List<Class<? extends Action>> apply(Board board, BotManager botManager) { | |
| 13 |
1
1. apply : removed call to com/takenoko/engine/Board::setWeather → KILLED |
board.setWeather(this); |
| 14 |
1
1. apply : replaced return value with Collections.emptyList for com/takenoko/weather/QuestionMark::apply → KILLED |
return List.of(ChooseAndApplyWeatherAction.class); |
| 15 | } | |
| 16 | ||
| 17 | @Override | |
| 18 | public void revert(Board board, BotManager botManager) { | |
| 19 |
1
1. revert : removed call to com/takenoko/engine/Board::resetWeather → NO_COVERAGE |
board.resetWeather(); |
| 20 | } | |
| 21 | ||
| 22 | @Override | |
| 23 | public String toString() { | |
| 24 |
1
1. toString : replaced return value with "" for com/takenoko/weather/QuestionMark::toString → TIMED_OUT |
return "QuestionMark"; |
| 25 | } | |
| 26 | } | |
Mutations | ||
| 13 |
1.1 |
|
| 14 |
1.1 |
|
| 19 |
1.1 |
|
| 24 |
1.1 |