package com.gempukku.lotro.logic.decisions;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractAwaitingDecision implements AwaitingDecision {
    private int _id;
    private String _text;
    private AwaitingDecisionType _decisionType;
    private Map<String, Object> _params = new HashMap<String, Object>();

    public AbstractAwaitingDecision(int id, String text, AwaitingDecisionType decisionType) {
        _id = id;
        _text = text;
        _decisionType = decisionType;
    }

    protected void setParam(String name, String value) {
        _params.put(name, value);
    }

    protected void setParam(String name, String[] value) {
        _params.put(name, value);
    }

    @Override
    public int getAwaitingDecisionId() {
        return _id;
    }

    @Override
    public String getText() {
        return _text;
    }

    @Override
    public AwaitingDecisionType getDecisionType() {
        return _decisionType;
    }

    @Override
    public Map<String, Object> getDecisionParameters() {
        return _params;
    }
}
