Example usage for com.badlogic.gdx.scenes.scene2d Event stop

List of usage examples for com.badlogic.gdx.scenes.scene2d Event stop

Introduction

In this page you can find the example usage for com.badlogic.gdx.scenes.scene2d Event stop.

Prototype

public void stop() 

Source Link

Document

Marks this event has being stopped.

Usage

From source file:com.zombie.game.actors.SteeringActor.java

License:Apache License

@Override
public boolean fire(Event event) {
    if (event instanceof InputEvent) {
        InputEvent.Type t = ((InputEvent) event).getType();
        event.stop();
        ActorHighlightedEvent actorEvent = new ActorHighlightedEvent();
        actorEvent.setSteeringActor(this);
        if (t != InputEvent.Type.exit) {
            this.active = true;
            return super.fire(actorEvent);
        }//from  www  .  j av  a 2  s .  c om
        this.active = false;
    }
    return super.fire(event);
}