started making the base Match constructor.
This commit is contained in:
parent
abac835b84
commit
b3f762ca3c
0
GamePlay/Match/.gitignore
vendored
Normal file
0
GamePlay/Match/.gitignore
vendored
Normal file
33
GamePlay/Match/match.java
Normal file
33
GamePlay/Match/match.java
Normal 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -6,6 +6,6 @@ public class Input_Attack {
|
|||||||
/*
|
/*
|
||||||
* The list of all input needed to make an attack
|
* The list of all input needed to make an attack
|
||||||
*/
|
*/
|
||||||
public ArrayList<Input> input_list;
|
//public ArrayList<Input> input_list;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user