Refactor Movement

This commit is contained in:
2021-03-05 19:57:03 +01:00
parent 842de3349f
commit bc604b52df
4 changed files with 24 additions and 4 deletions

View File

@@ -1,10 +1,11 @@
package com.bartlomiejpluta.base.api.game.entity;
import com.bartlomiejpluta.base.api.game.map.layer.object.ObjectLayer;
import org.joml.Vector2i;
public interface Movement {
boolean perform();
boolean perform(ObjectLayer layer);
Movement another();

View File

@@ -27,4 +27,6 @@ public interface ObjectLayer extends Layer {
PassageAbility[][] getPassageMap();
boolean isMovementPossible(Movement movement);
void pushMovement(Movement movement);
}