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:
@ -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();}
|
||||
}
|
||||
|
Reference in New Issue
Block a user