started making the base Match constructor.

This commit is contained in:
no 2021-05-27 00:37:04 +02:00
parent abac835b84
commit b3f762ca3c
3 changed files with 34 additions and 1 deletions

0
GamePlay/Match/.gitignore vendored Normal file
View File

33
GamePlay/Match/match.java Normal file
View File

@ -0,0 +1,33 @@
package Match;
import input.InputBuffer;
/**
* Main class that describes the base structure of the match, with characters, timer and such
* @author Victor Azra
*
*/
public class match {
/**
* the number of inputs read for each character, a.k.a. for how many frames the inputs are saved in memory.
*/
private static final int inputBufferSize = 120;
private int timer;
private InputBuffer inputsP1, inputsP2;
private int hpP1, hpP2;
private int roundsWonP1, roundsWonP2;
public match() {
this.timer = 99;
this.inputsP1 = new input.InputBuffer(inputBufferSize);
this.inputsP2 = new input.InputBuffer(inputBufferSize);
this.hpP1 = 1000; //TODO : change to char max hp
this.hpP2 = 1000;
this.roundsWonP1 = 0;
this.roundsWonP2 = 0;
}
}

View File

@ -6,6 +6,6 @@ public class Input_Attack {
/*
* The list of all input needed to make an attack
*/
public ArrayList<Input> input_list;
//public ArrayList<Input> input_list;
}