package games.strategy.engine.history;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: </p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public abstract class IndexedHistoryNode extends HistoryNode
{
    //points to the first change we are responsible for
   private final int m_changeStartIndex;
   //points after the last change we are responsible for
   private int m_changeStopIndex = -1;

   public IndexedHistoryNode(String value, int changeStartIndex, boolean allowsChildren)
    {
        super(value, true);
        m_changeStartIndex = changeStartIndex;
    }

    int getChangeStartIndex()
    {
        return m_changeStartIndex;
    }

    int getChangeEndIndex()
    {
        return m_changeStopIndex;
    }

    void setChangeEndIndex(int index)
    {
        m_changeStopIndex = index;
    }

}
