34 lines
774 B
Java
34 lines
774 B
Java
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;
|
|
}
|
|
|
|
|
|
}
|