| Total Complexity | 1 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 27 | public interface CellLayerData { |
||
| 28 | /** |
||
| 29 | * The object number on the cell |
||
| 30 | * |
||
| 31 | * @return int |
||
| 32 | */ |
||
| 33 | @Pure |
||
| 34 | public int number(); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * The rotation value of the sprite |
||
| 38 | * |
||
| 39 | * @return int |
||
| 40 | */ |
||
| 41 | @Pure |
||
| 42 | public int rotation(); |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Does the sprite has been flipped ? |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | @Pure |
||
| 50 | public boolean flip(); |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Check if the layer is active (i.e. has an object) |
||
| 54 | * |
||
| 55 | * @return bool |
||
| 56 | */ |
||
| 57 | @Pure |
||
| 58 | public default boolean active() { |
||
| 59 | 1 | return number() != 0; |
|
| 60 | } |
||
| 62 |