untitledTextAdventure/src/main/java/game/logic/actionsystem/ActionExecutor.java

21 lines
463 B
Java
Raw Normal View History

2022-08-30 20:53:50 +02:00
package game.logic.actionsystem;
import game.logic.GameLogic;
import game.state.Entity;
/**
* An action executor provides specific instructions how to manipulate the game
* logic.
2022-08-30 20:53:50 +02:00
*/
public interface ActionExecutor {
2022-08-30 20:53:50 +02:00
/**
* Executes the game logic manupulation.
*
* @param logic The game logic
* @param actor The actor
2022-08-30 20:53:50 +02:00
* @param args Arguments
*/
public boolean execute(GameLogic logic, Entity actor, Entity... args);
2022-08-30 20:53:50 +02:00
}