You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
474 B
27 lines
474 B
11 years ago
|
package mightypork.rogue.bus;
|
||
|
|
||
|
|
||
|
import mightypork.rogue.AppAccess;
|
||
|
import mightypork.rogue.bus.events.UpdateEvent;
|
||
|
import mightypork.utils.time.Updateable;
|
||
|
|
||
|
|
||
|
public abstract class UpdateReceiver extends SimpleBusClient implements UpdateEvent.Listener, Updateable {
|
||
|
|
||
|
public UpdateReceiver(AppAccess app) {
|
||
|
super(app);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public void receive(UpdateEvent event)
|
||
|
{
|
||
|
update(event.getDeltaTime());
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public abstract void update(double delta);
|
||
|
|
||
|
}
|