/*
* PCStat.java
* Copyright 2002 (C) Bryan McRoberts <merton_monk@yahoo.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Created on August 10, 2002, 11:58 PM
*/
package pcgen.core;
import pcgen.base.formula.base.VarScoped;
import pcgen.cdom.base.NonInteractive;
import pcgen.cdom.base.SortKeyRequired;
import pcgen.cdom.enumeration.IntegerKey;
import pcgen.facade.core.StatFacade;
/**
* {@code PCStat}.
*
* @author Bryan McRoberts <merton_monk@users.sourceforge.net>
*/
public final class PCStat extends PObject implements StatFacade,
NonInteractive, SortKeyRequired, VarScoped
{
@Override
public int getMinValue()
{
return getSafe(IntegerKey.MIN_VALUE);
}
/*
* (non-Javadoc)
* @see pcgen.core.PObject#toString()
*
* This is what the UI displays for the CHOOSE:PCSTAT. Removed additional sb.append to de-clutter display.
*
*/
@Override
public String toString()
{
return getKeyName();
}
/* (non-Javadoc)
* @see pcgen.core.facade.StatFacade#getName()
*/
@Override
public String getName()
{
return getDisplayName();
}
@Override
public String getLocalScopeName()
{
return "STAT";
}
}