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