Example usage for com.badlogic.gdx.scenes.scene2d Actor act

List of usage examples for com.badlogic.gdx.scenes.scene2d Actor act

Introduction

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

Prototype

public void act(float delta) 

Source Link

Document

Updates the actor based on time.

Usage

From source file:com.o2d.pkayjava.editor.view.ui.widget.actors.basic.SandboxBackUI.java

License:Apache License

public void render(float delta) {
    ResourceManager resourceManager = Overlap2DFacade.getInstance().retrieveProxy(ResourceManager.NAME);
    batch.begin();/*from  w ww  .  j a  va 2s .c om*/
    for (Actor actor : actors) {
        actor.setScale(1f / resourceManager.getProjectVO().pixelToWorld);
        actor.act(delta);
        actor.draw(batch, 1);
    }
    batch.setColor(Color.WHITE);
    batch.end();
}

From source file:jp.gr.java_conf.kgd.example.blog.crossgenerics.WidgetExample.java

License:Open Source License

public static void doSomething2(Actor actorView, Layout layoutView) {
    // ?????????????
    if (actorView != layoutView) {
        throw new IllegalArgumentException(
                "actorView?layoutView???????????");
    }/*from   www. j  a  va  2  s.  c o  m*/

    // ????
    actorView.act(0);
    layoutView.getPrefWidth();
}