package net.sourceforge.pain.data.prototype;
import net.sourceforge.pain.data.type.*;
import net.sourceforge.pain.db.*;
import net.sourceforge.pain.util.*;
public final class MobilePrototype extends Prototype {
public static final int MOVE_POINTS_DICE = 1 + LAST_BASE_FIELD_INDEX;
public static final int NFIELDS = 2 + LAST_BASE_FIELD_INDEX;
public final static Class superroles[] = new Class[]{LocatedPrototype.class};
public MobilePrototype(PainDB db) {
super(db);
}
public MobilePrototype() {
}
public DbClassSchema provideSchema() {
byte types[] = new byte[NFIELDS];
String names[] = new String[NFIELDS];
fillSuperSchema(types, names);
types[MOVE_POINTS_DICE] = DbType.ARRAY_OF_INT;
names[MOVE_POINTS_DICE] = "movePointsDice";
return new DbClassSchema(types, names);
}
public Dice getMovePointsDice() {
return new Dice(getIntArray(MOVE_POINTS_DICE));
}
public void setMovePointsDice(Dice dice) {
setIntArray(MOVE_POINTS_DICE, dice.data());
}
public Class[] getSuperroles() {
return superroles;
}
public Class getPrototypedRoleClass() {
return Mobile.class;
}
}