Newer
Older
CactusServer / src / main / java / fight3D / StateBend.java
y-ota on 10 May 2018 900 bytes 初うp
package fight3D;
import framework.gameMain.Mode;
import framework.gameMain.ModeOnGround;
import framework.physics.Velocity3D;

//しゃがむ
public class StateBend extends StateRepeatable {
	static final Velocity3D initialVelocity = new Velocity3D(0.0, 0.0, 0.0);
	
	public boolean canChange(State nextState, Mode mode) {
		
		//通常
		if(mode instanceof ModeOnGround) {
			if(nextState instanceof StateAttack) return false;
			if(nextState instanceof StateUpperAttack) return false;
			if(nextState instanceof StateJumpAttack) return false;
			if(nextState instanceof StateGuard) return false;
			if(nextState instanceof StateJump) return false;
			if(nextState instanceof StateLeftMove) return false;
			if(nextState instanceof StateRightMove) return false;
		}
		
		//落下中
		return true;
	}
	
	public Velocity3D getInitialVelocity() {
		return initialVelocity;
	}

}