Package com.l2client.animsystem

Examples of com.l2client.animsystem.Mediator.update()


  public void testSelf() throws MalformedURLException{
    Mediator mediator = new Mediator(getActions(), new Transitions(new String[][]{}));
    InputProvider in = new InputProvider();
    mediator.setAnimationProvider(this);
    mediator.update(0.5f);
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("stand_"));
    mediator.update(10.0f);
    in.setInput(Direction.Front);
    in.setInput(Speed.Run);
View Full Code Here


    InputProvider in = new InputProvider();
    mediator.setAnimationProvider(this);
    mediator.update(0.5f);
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("stand_"));
    mediator.update(10.0f);
    in.setInput(Direction.Front);
    in.setInput(Speed.Run);
    mediator.update(10.0f);
    //should still be stand, one frame coherence
    assertTrue(currentAnim.startsWith("stand_"));
View Full Code Here

    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("stand_"));
    mediator.update(10.0f);
    in.setInput(Direction.Front);
    in.setInput(Speed.Run);
    mediator.update(10.0f);
    //should still be stand, one frame coherence
    assertTrue(currentAnim.startsWith("stand_"));
    log.info("Animation name:"+currentAnim);
    mediator.setInput(in);
    mediator.update(10.0f);
View Full Code Here

    mediator.update(10.0f);
    //should still be stand, one frame coherence
    assertTrue(currentAnim.startsWith("stand_"));
    log.info("Animation name:"+currentAnim);
    mediator.setInput(in);
    mediator.update(10.0f);
    //now changed
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("run"));
    mediator.update(10.0f);
    log.info("Animation name:"+currentAnim);
View Full Code Here

    mediator.setInput(in);
    mediator.update(10.0f);
    //now changed
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("run"));
    mediator.update(10.0f);
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("run"));
    in = new InputProvider();
    in.setInput(Direction.None);
    in.setInput(Speed.Run);//implizit overrule of speed (no direction, no speed)
View Full Code Here

    assertTrue(currentAnim.startsWith("run"));
    in = new InputProvider();
    in.setInput(Direction.None);
    in.setInput(Speed.Run);//implizit overrule of speed (no direction, no speed)
    mediator.setInput(in);
    mediator.update(10.0f);
    //back to idle?
    assertTrue(currentAnim.startsWith("stand_"));
    in = new InputProvider();
    in.setInput(Enemy.Near);
    mediator.setInput(in);
View Full Code Here

    //back to idle?
    assertTrue(currentAnim.startsWith("stand_"));
    in = new InputProvider();
    in.setInput(Enemy.Near);
    mediator.setInput(in);
    mediator.update(10.0f);
    //now changed
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("ready"));
   
    mediator.update(10.0f);
View Full Code Here

    mediator.update(10.0f);
    //now changed
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("ready"));
   
    mediator.update(10.0f);
    mediator.update(10.0f);
    in = new InputProvider();
    in.setInput(HurtVector.Front);
    in.setInput(Hurt.Light);
    mediator.callAction("Wounded", in);
View Full Code Here

    //now changed
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("ready"));
   
    mediator.update(10.0f);
    mediator.update(10.0f);
    in = new InputProvider();
    in.setInput(HurtVector.Front);
    in.setInput(Hurt.Light);
    mediator.callAction("Wounded", in);
    mediator.update(10f);
View Full Code Here

    mediator.update(10.0f);
    in = new InputProvider();
    in.setInput(HurtVector.Front);
    in.setInput(Hurt.Light);
    mediator.callAction("Wounded", in);
    mediator.update(10f);
    log.info("Animation name:"+currentAnim);
    assertTrue(currentAnim.startsWith("knockback"));
   
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.