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;
}
}