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.
31 lines
556 B
31 lines
556 B
11 years ago
|
package mightypork.rogue.events;
|
||
|
|
||
|
|
||
|
import mightypork.gamecore.eventbus.BusEvent;
|
||
11 years ago
|
import mightypork.rogue.RogueStateManager;
|
||
|
import mightypork.rogue.RogueStateManager.RogueState;
|
||
11 years ago
|
|
||
|
|
||
11 years ago
|
/**
|
||
|
* Request for a game state change
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
11 years ago
|
public class RogueStateRequest extends BusEvent<RogueStateManager> {
|
||
11 years ago
|
|
||
11 years ago
|
final private RogueState requested;
|
||
11 years ago
|
|
||
|
|
||
11 years ago
|
public RogueStateRequest(RogueState requested)
|
||
11 years ago
|
{
|
||
|
this.requested = requested;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
11 years ago
|
protected void handleBy(RogueStateManager handler)
|
||
11 years ago
|
{
|
||
|
handler.triggerAction(requested);
|
||
|
}
|
||
|
}
|