Package com.l2client.animsystem.jme.actions

Source Code of com.l2client.animsystem.jme.actions.Celebrate

package com.l2client.animsystem.jme.actions;

import com.l2client.animsystem.Action;
import com.l2client.animsystem.Animation;
import com.l2client.animsystem.Channel.Channels;
import com.l2client.animsystem.Mediator;
import com.l2client.animsystem.jme.input.Direction;

/**
* celebrate at level 1, same as idle or taunt
*
*/
public class Celebrate extends Action {
  @Override
  protected Animation evaluate(Mediator med) {
    Animation ret = null;
    if (!Direction.None.equals(med.getInput().getInput(Direction.class))) {
      if (med.forceLockCheck(Channels.AllChannels, 1)) {
        ret = med.getAnimation();
        ret.setLevel(1);
        ret.setChannel(med.getChannel(Channels.AllChannels));
        ret.setBlendTime(0.2f);
        ret.setLooping(false);
        ret.setName("celebrate");
        return ret;
      }
    }
    return null;
  }
}
TOP

Related Classes of com.l2client.animsystem.jme.actions.Celebrate

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.