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