38 lines
723 B
Java
38 lines
723 B
Java
package org.moparscape.msc.gs.external;
|
|
|
|
public class CerterDef {
|
|
/**
|
|
* Certs this stall can deal with
|
|
*/
|
|
private CertDef[] certs;
|
|
/**
|
|
* Type of stall
|
|
*/
|
|
private String type;
|
|
|
|
public int getCertID(int index) {
|
|
if (index < 0 || index >= certs.length) {
|
|
return -1;
|
|
}
|
|
return certs[index].getCertID();
|
|
}
|
|
|
|
public String[] getCertNames() {
|
|
String[] names = new String[certs.length];
|
|
for (int i = 0; i < certs.length; i++) {
|
|
names[i] = certs[i].getName();
|
|
}
|
|
return names;
|
|
}
|
|
|
|
public int getItemID(int index) {
|
|
if (index < 0 || index >= certs.length) {
|
|
return -1;
|
|
}
|
|
return certs[index].getItemID();
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
} |