public static InputMode abilityInputMode(AbilityType type) {
        if (type == null) {
            return null;
        }
        switch (type) {
            case abil_aim_fire:
                return AIM;
            case abil_tar_heal:
                return TARGET;
            case abil_dir_cleave:
                return DIRECTION;
            case abil_inv_melee:
                return MOVEMENT;
        }
        return null;
    }