fr.arakne.utils.maps.serializer.InteractiveObjectData   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 17
ccs 1
cts 1
cp 1
rs 10
wmc 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
interactive() 0 2 ?
A rotation() 0 4 1
1
/*
2
 * This file is part of ArakneUtils.
3
 *
4
 * ArakneUtils is free software: you can redistribute it and/or modify
5
 * it under the terms of the GNU Lesser General Public License as published by
6
 * the Free Software Foundation, either version 3 of the License, or
7
 * (at your option) any later version.
8
 *
9
 * ArakneUtils is distributed in the hope that it will be useful,
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
 * GNU Lesser General Public License for more details.
13
 *
14
 * You should have received a copy of the GNU Lesser General Public License
15
 * along with ArakneUtils.  If not, see <https://www.gnu.org/licenses/>.
16
 *
17
 * Copyright (c) 2017-2020 Vincent Quatrevieux
18
 */
19
20
package fr.arakne.utils.maps.serializer;
21
22
import org.checkerframework.dataflow.qual.Pure;
23
24
/**
25
 * Cell layer data for the interactive object, or "object2"
26
 */
27
public interface InteractiveObjectData extends CellLayerData {
28
    /**
29
     * Rotation is not supported by the layerObject2
30
     */
31
    @Pure
32
    @Override
33
    public default int rotation() {
34 1
        return 0;
35
    }
36
37
    /**
38
     * Does the object is interactive ?
39
     *
40
     * @return true if the layer contains an interactive object
41
     */
42
    @Pure
43
    public boolean interactive();
44
}
45