1 package ru.deadsoftware.cavedroid.game.input
3 import ru.deadsoftware.cavedroid.game.input.action.IGameInputAction
5 interface IGameInputHandler<A : IGameInputAction> {
8 * Implementation should check if conditions for handling an input are satisfied
9 * For example - inventory input handler should return false if inventory is closed
11 fun checkConditions(action: A): Boolean
14 * Handle given input action.
15 * This will not be called if [checkConditions] returned false