public ModuleSpec ( int nt, int nc, byte type ) : System | ||
nt | int | The number of tiles /// /// |
nc | int | The number of components /// /// |
type | byte | the type of the specification module i.e. tile specific, /// component specific or both. /// /// |
return | System |
public ModuleSpec(int nt, int nc, byte type)
{
nTiles = nt;
nComp = nc;
specValType = new byte[nt][];
for (int i = 0; i < nt; i++)
{
specValType[i] = new byte[nc];
}
switch (type)
{
case SPEC_TYPE_TILE:
specType = SPEC_TYPE_TILE;
break;
case SPEC_TYPE_COMP:
specType = SPEC_TYPE_COMP;
break;
case SPEC_TYPE_TILE_COMP:
specType = SPEC_TYPE_TILE_COMP;
break;
}
}