Package com.l2client.animsystem.example

Source Code of com.l2client.animsystem.example.ClimbAction

package com.l2client.animsystem.example;

import com.l2client.animsystem.Action;
import com.l2client.animsystem.Animation;
import com.l2client.animsystem.Mediator;
import com.l2client.animsystem.Channel.Channels;

public class ClimbAction extends Action {

  public ClimbAction() {
  }
 
  @Override
  protected Animation evaluate(Mediator med){
    Animation ret = null;
    if(med.setLockCheck(Channels.AllChannels,1)){
      ret = med.getAnimation();
      ret.setLevel(1);
      ret.setChannel(med.getChannel(Channels.AllChannels));
      ret.setName("Climb");
      ret.setBlendTime(1f);
    }
    return ret;
  }
}
TOP

Related Classes of com.l2client.animsystem.example.ClimbAction

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.