| 1 | package g0803.bindingofshiba.model.game.elements; | |
| 2 | ||
| 3 | import g0803.bindingofshiba.math.Vec2D; | |
| 4 | ||
| 5 | public class Element { | |
| 6 | ||
| 7 | private Vec2D position; | |
| 8 | ||
| 9 | public Element(Vec2D position) { | |
| 10 | this.position = position; | |
| 11 | } | |
| 12 | ||
| 13 | public Element(int x, int y) { | |
| 14 | this.position = new Vec2D(x, y); | |
| 15 | } | |
| 16 | ||
| 17 | public Vec2D getPosition() { | |
| 18 |
1
1. getPosition : replaced return value with null for g0803/bindingofshiba/model/game/elements/Element::getPosition → KILLED |
return position; |
| 19 | } | |
| 20 | ||
| 21 | public void setPosition(Vec2D position) { | |
| 22 | this.position = position; | |
| 23 | } | |
| 24 | } | |
Mutations | ||
| 18 |
1.1 |