| 1 | package g0803.bindingofshiba.view; | |
| 2 | ||
| 3 | import g0803.bindingofshiba.App; | |
| 4 | import g0803.bindingofshiba.events.IEventManager; | |
| 5 | import g0803.bindingofshiba.gui.GUI; | |
| 6 | import g0803.bindingofshiba.math.Vec2D; | |
| 7 | ||
| 8 | public abstract class View<T> { | |
| 9 | ||
| 10 | private final T model; | |
| 11 | private final IEventManager eventManager; | |
| 12 | ||
| 13 | public View(T model, IEventManager eventManager) { | |
| 14 | this.model = model; | |
| 15 | this.eventManager = eventManager; | |
| 16 | } | |
| 17 | ||
| 18 | public T getModel() { | |
| 19 |
1
1. getModel : replaced return value with null for g0803/bindingofshiba/view/View::getModel → KILLED |
return model; |
| 20 | } | |
| 21 | ||
| 22 | public IEventManager getEventManager() { | |
| 23 |
1
1. getEventManager : replaced return value with null for g0803/bindingofshiba/view/View::getEventManager → KILLED |
return eventManager; |
| 24 | } | |
| 25 | ||
| 26 | public abstract void draw(App app, GUI gui, Vec2D offset); | |
| 27 | } | |
Mutations | ||
| 19 |
1.1 |
|
| 23 |
1.1 |