de.pewpewproject.lasertag.lasertaggame.ILasertagPlayer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A onActivated() 0 1 1
A onDeactivated() 0 1 1
A getLasertagUsername() 0 2 1
1
package de.pewpewproject.lasertag.lasertaggame;
2
3
/**
4
 * Interface providing methods for a lasertag player
5
 *
6
 * @author Étienne Muser
7
 */
8
public interface ILasertagPlayer {
9
10
    /**
11
     * Called when the player is deactivated
12
     */
13
    default void onDeactivated() {
14
        // Default empty
15
    }
16
17
    /**
18
     * Called when the player gets activated
19
     */
20
    default void onActivated() {
21
        // Default empty
22
    }
23
24
    default String getLasertagUsername() {
25
        return null;
26
    }
27
}
28