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