
com.republicate.smartlib.sgf.properties.GW Maven / Gradle / Ivy
The newest version!
package com.republicate.smartlib.sgf.properties;
import com.republicate.smartlib.sgf.AnnotationProperty;
import com.republicate.smartlib.sgf.types.ValueType;
import com.republicate.smartlib.sgf.types.ValueTypes;
import java.util.List;
/**
* Something good for white.
*/
public class GW extends AnnotationProperty {
private int emphasis = 0;
public ValueType getValueType() {
return ValueTypes.DOUBLE;
}
public boolean addValue(List value) {
if(value.size() != 1) return false;
try {
emphasis = Integer.parseInt(value.get(0));
return true;
} catch(NumberFormatException nfe) {
return false;
}
}
public Object getSGFValue() {
return emphasis;
}
public int getEmphasis() {
return emphasis;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy