PlayerCollisionWithObstacleEvent.java

1
package g0803.bindingofshiba.events.game;
2
3
import g0803.bindingofshiba.App;
4
import g0803.bindingofshiba.events.Event;
5
import g0803.bindingofshiba.model.game.elements.Obstacle;
6
import g0803.bindingofshiba.model.game.elements.Player;
7
8
public class PlayerCollisionWithObstacleEvent extends Event {
9
10
    private final Player player;
11
    private final Obstacle obstacle;
12
13
    public PlayerCollisionWithObstacleEvent(double dt, App app, Player player, Obstacle obstacle) {
14
        super(dt, app);
15
        this.player = player;
16
        this.obstacle = obstacle;
17
    }
18
19
    public Player getPlayer() {
20 1 1. getPlayer : replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithObstacleEvent::getPlayer → KILLED
        return player;
21
    }
22
23
    public Obstacle getObstacle() {
24 1 1. getObstacle : replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithObstacleEvent::getObstacle → KILLED
        return obstacle;
25
    }
26
}

Mutations

20

1.1
Location : getPlayer
Killed by : g0803.bindingofshiba.controller.game.PlayerControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.PlayerControllerTest]/[method:collisionWithObstacle()]
replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithObstacleEvent::getPlayer → KILLED

24

1.1
Location : getObstacle
Killed by : g0803.bindingofshiba.controller.game.events.PlayerToObstacleCollisionEventsControllerTest.[engine:junit-jupiter]/[class:g0803.bindingofshiba.controller.game.events.PlayerToObstacleCollisionEventsControllerTest]/[method:playerCollidingWithObstacle()]
replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithObstacleEvent::getObstacle → KILLED

Active mutators

Tests examined


Report generated by PIT 1.7.0