| 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.Monster; | |
| 6 | import g0803.bindingofshiba.model.game.elements.Player; | |
| 7 | ||
| 8 | public class PlayerCollisionWithMonsterEvent extends Event { | |
| 9 | ||
| 10 | private final Player player; | |
| 11 | private final Monster monster; | |
| 12 | ||
| 13 | public PlayerCollisionWithMonsterEvent(double dt, App app, Player player, Monster monster) { | |
| 14 | super(dt, app); | |
| 15 | this.player = player; | |
| 16 | this.monster = monster; | |
| 17 | } | |
| 18 | ||
| 19 | public Player getPlayer() { | |
| 20 |
1
1. getPlayer : replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithMonsterEvent::getPlayer → KILLED |
return player; |
| 21 | } | |
| 22 | ||
| 23 | public Monster getMonster() { | |
| 24 |
1
1. getMonster : replaced return value with null for g0803/bindingofshiba/events/game/PlayerCollisionWithMonsterEvent::getMonster → KILLED |
return monster; |
| 25 | } | |
| 26 | } | |
Mutations | ||
| 20 |
1.1 |
|
| 24 |
1.1 |