Renderer/src/main/java/electrosphere/controls/Control.java
austin f4bcc35cbf First pass at attacking
assumptions created:
creatures always have facing vector
animation frames for attack animation
items attached to attacking creatures have hitboxes
2021-07-03 23:25:11 -04:00

38 lines
665 B
Java

package electrosphere.controls;
public class Control {
boolean isKey;
boolean isMouse;
boolean state;
int keyValue;
public boolean isIsKey() {
return isKey;
}
public boolean isIsMouse() {
return isMouse;
}
public boolean isState() {
return state;
}
public int getKeyValue() {
return keyValue;
}
public void setState(boolean state) {
this.state = state;
}
public Control(boolean isKey, boolean isMouse, int keyValue) {
this.isKey = isKey;
this.isMouse = isMouse;
this.keyValue = keyValue;
this.state = false;
}
}