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