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