| 1 | package com.takenoko.shape; | |
| 2 | ||
| 3 | import com.takenoko.layers.tile.TileColor; | |
| 4 | ||
| 5 | /** This class is a factory for the creation of patterns. */ | |
| 6 | public enum PatternFactory { | |
| 7 | LINE { | |
| 8 | @Override | |
| 9 | public Pattern createPattern(TileColor tileColor) { | |
| 10 |
1
1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$1::createPattern → KILLED |
return new Line(tileColor); |
| 11 | } | |
| 12 | }, | |
| 13 | ||
| 14 | CURVE { | |
| 15 | @Override | |
| 16 | public Pattern createPattern(TileColor tileColor) { | |
| 17 |
1
1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$2::createPattern → KILLED |
return new Curve(tileColor); |
| 18 | } | |
| 19 | }, | |
| 20 | ||
| 21 | TRIANGLE { | |
| 22 | @Override | |
| 23 | public Pattern createPattern(TileColor tileColor) { | |
| 24 |
1
1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$3::createPattern → KILLED |
return new Triangle(tileColor); |
| 25 | } | |
| 26 | }, | |
| 27 | ||
| 28 | DIAMOND { | |
| 29 | @Override | |
| 30 | public Pattern createPattern(TileColor tileColor) { | |
| 31 |
1
1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$4::createPattern → KILLED |
return new Diamond(tileColor); |
| 32 | } | |
| 33 | }, | |
| 34 | ||
| 35 | MIXED_COLORS_DIAMOND { | |
| 36 | @Override | |
| 37 | public Pattern createPattern(TileColor tileColor) { | |
| 38 |
1
1. createPattern : replaced return value with null for com/takenoko/shape/PatternFactory$5::createPattern → KILLED |
return new MixedColorsDiamond(tileColor); |
| 39 | } | |
| 40 | }; | |
| 41 | ||
| 42 | public abstract Pattern createPattern(TileColor tileColor); | |
| 43 | } | |
Mutations | ||
| 10 |
1.1 |
|
| 17 |
1.1 |
|
| 24 |
1.1 |
|
| 31 |
1.1 |
|
| 38 |
1.1 |