From b3f762ca3c2bd7f6168dce1309fbaa55f42f8899 Mon Sep 17 00:00:00 2001 From: no Date: Thu, 27 May 2021 00:37:04 +0200 Subject: [PATCH] started making the base Match constructor. --- GamePlay/Match/.gitignore | 0 GamePlay/Match/match.java | 33 ++++++++++++++++++++++++++++++++ GamePlay/input/Input_Attack.java | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 GamePlay/Match/.gitignore create mode 100644 GamePlay/Match/match.java diff --git a/GamePlay/Match/.gitignore b/GamePlay/Match/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/GamePlay/Match/match.java b/GamePlay/Match/match.java new file mode 100644 index 0000000..fd702a6 --- /dev/null +++ b/GamePlay/Match/match.java @@ -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; + } + + +} diff --git a/GamePlay/input/Input_Attack.java b/GamePlay/input/Input_Attack.java index dfe4476..c61661f 100644 --- a/GamePlay/input/Input_Attack.java +++ b/GamePlay/input/Input_Attack.java @@ -6,6 +6,6 @@ public class Input_Attack { /* * The list of all input needed to make an attack */ - public ArrayList input_list; + //public ArrayList input_list; }