Handling of the inputs done. Determines what the characters next frames will be depending on what th player has input.

This commit is contained in:
no
2021-06-07 17:38:35 +02:00
parent 67d4c9be53
commit 5b5960d554
6 changed files with 218 additions and 4 deletions

View File

@ -2,6 +2,7 @@ package gameplay.actions;
import java.util.ArrayList;
import gameplay.entities.Status;
import gameplay.frames.*;
import gameplay.input.*;
@ -9,7 +10,10 @@ public class Attack implements Action {
/**
* Defines if the attack is a special one (E.G. a fireball) or a normal one (a punch)
*/
private static boolean isSpecial;
private static boolean isSpecial;
private static Status requiredStatus;
/**
* The suite of Inputs to have the move come out.
@ -67,4 +71,14 @@ public class Attack implements Action {
public void setParts(attackPart[] parts) {
this.parts = parts;
}
public static Status getRequiredStatus() {
return requiredStatus;
}
public static void setRequiredStatus(Status requiredStatus) {
Attack.requiredStatus = requiredStatus;
}
public boolean isSpecial() {return this.isSpecial();}
}