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