Use interfaces wherever it's possible in :api and :engine

This commit is contained in:
2021-03-03 23:32:10 +01:00
parent 0644815c5f
commit b80c5c4687
7 changed files with 27 additions and 11 deletions

View File

@@ -6,6 +6,8 @@ import com.bartlomiejpluta.base.api.internal.render.Renderable;
import org.joml.Vector2i;
public interface Entity extends Placeable, Renderable, Updatable {
void setStepSize(float x, float y);
Vector2i getCoordinates();
void setCoordinates(Vector2i coordinates);

View File

@@ -13,4 +13,8 @@ public interface Image extends Placeable, Renderable {
int getWidth();
int getHeight();
void setOpacity(float opacity);
float getOpacity();
}