Main Gameplay Loop done.
Only Missing Throws and Projectile handling. Need to be fused with engine.
This commit is contained in:
@ -138,5 +138,15 @@ public class InputBuffer {
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* Resets the inputbuffer. Clears every recorded input and puts the position back to 0.
|
||||
*/
|
||||
public void clear(){
|
||||
for(int i = 0; i < this.size; i++) {
|
||||
this.inputList[i].clear();
|
||||
}
|
||||
this.pos = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,5 +83,14 @@ public class Inputs {
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the input (puts them all to false)
|
||||
*/
|
||||
public void clear(){
|
||||
for(int i = 0; i < numberOfInputs; i++) {
|
||||
this.tab[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user