| 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.room.Room; | |
| 7 | ||
| 8 | public class MonsterDamagedEvent extends Event { | |
| 9 | ||
| 10 | private final Monster monster; | |
| 11 | private final Room room; | |
| 12 | private final double damage; | |
| 13 | ||
| 14 | public MonsterDamagedEvent(double dt, App app, Monster monster, Room room, double damage) { | |
| 15 | super(dt, app); | |
| 16 | ||
| 17 | this.monster = monster; | |
| 18 | this.room = room; | |
| 19 | this.damage = damage; | |
| 20 | } | |
| 21 | ||
| 22 | public Monster getMonster() { | |
| 23 |
1
1. getMonster : replaced return value with null for g0803/bindingofshiba/events/game/MonsterDamagedEvent::getMonster → KILLED |
return monster; |
| 24 | } | |
| 25 | ||
| 26 | public double getDamage() { | |
| 27 |
1
1. getDamage : replaced double return with 0.0d for g0803/bindingofshiba/events/game/MonsterDamagedEvent::getDamage → KILLED |
return damage; |
| 28 | } | |
| 29 | ||
| 30 | public Room getRoom() { | |
| 31 |
1
1. getRoom : replaced return value with null for g0803/bindingofshiba/events/game/MonsterDamagedEvent::getRoom → KILLED |
return room; |
| 32 | } | |
| 33 | } | |
Mutations | ||
| 23 |
1.1 |
|
| 27 |
1.1 |
|
| 31 |
1.1 |