Свойство | Тип | Описание | |
---|---|---|---|
compDef | System.Object[] | ||
def | |||
nComp | int | ||
nTiles | int | ||
specType | int | ||
specValType | byte[][] | ||
tileCompVal | System.Object>.System.Collections.Generic.Dictionary | ||
tileDef | System.Object[] |
Метод | Описание | |
---|---|---|
Clone ( ) : |
||
ModuleSpec ( int nt, int nc, byte type ) : System |
Constructs a 'ModuleSpec' object, initializing all the components and tiles to the 'SPEC_DEF' spec val type, for the specified number of components and tiles.
|
|
getCompDef ( int c ) : |
Gets default value of the specified component. If no specification have been entered for this component, returns default value.
|
|
getDefault ( ) : |
Gets default value for this module.
|
|
getSpecValType ( int t, int c ) : byte |
Return the spec type of the given tile-component.
|
|
getTileCompVal ( int t, int c ) : |
Gets value of specified tile-component. This method calls getSpec but has a public access.
|
|
getTileDef ( int t ) : |
Gets default value of the specified tile. If no specification has been entered, it returns the default value.
|
|
isCompSpecified ( int c ) : bool |
Whether or not specifications have been entered for the given component.
|
|
isTileCompSpecified ( int t, int c ) : bool |
Whether or not a tile-component specification has been defined
|
|
isTileSpecified ( int t ) : bool |
Whether or not specifications have been entered for the given tile.
|
|
parseIdx ( System word, int maxIdx ) : bool[] |
This method is responsible of parsing tile indexes set and component indexes set for an option. Such an argument must follow the following policy: Example: It returns a boolean array skteching which tile or component are concerned by the next parameters.
|
|
rotate90 ( Coord anT ) : void |
Rotate the ModuleSpec instance by 90 degrees (this modifies only tile and tile-component specifications).
|
|
setCompDef ( int c, System value_Renamed ) : void |
Sets default value for specified component and specValType tag if allowed by its priority.
|
|
setDefault ( System value_Renamed ) : void |
Sets default value for this module
|
|
setTileCompVal ( int t, int c, System value_Renamed ) : void |
Sets value for specified tile-component.
|
|
setTileDef ( int t, System value_Renamed ) : void |
Sets default value for specified tile and specValType tag if allowed by its priority.
|
Метод | Описание | |
---|---|---|
getSpec ( int t, int c ) : |
Gets value of specified tile-component without knowing if a specific tile-component value has been previously entered. It first check if a tile-component specific value has been entered, then if a tile specific value exist, then if a component specific value exist. If not the default value is returned.
|
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. /// /// |
Результат | System |
public getCompDef ( int c ) : |
||
c | int | Component index /// /// |
Результат |
protected getSpec ( int t, int c ) : |
||
t | int | Tile index /// /// |
c | int | Component index /// /// |
Результат |
public getSpecValType ( int t, int c ) : byte | ||
t | int | Tile index /// /// |
c | int | Component index /// /// |
Результат | byte |
public getTileCompVal ( int t, int c ) : |
||
t | int | Tile index /// /// |
c | int | Component index /// /// |
Результат |
public getTileDef ( int t ) : |
||
t | int | Tile index /// /// |
Результат |
public isCompSpecified ( int c ) : bool | ||
c | int | Index of the component /// /// |
Результат | bool |
public isTileCompSpecified ( int t, int c ) : bool | ||
t | int | Tile index /// /// |
c | int | Component index /// /// |
Результат | bool |
public isTileSpecified ( int t ) : bool | ||
t | int | Index of the tile /// /// |
Результат | bool |
public static parseIdx ( System word, int maxIdx ) : bool[] | ||
word | System | The word to parse. /// /// |
maxIdx | int | Maximum authorized index /// /// |
Результат | bool[] |
public setCompDef ( int c, System value_Renamed ) : void | ||
c | int | Component index /// /// |
value_Renamed | System | |
Результат | void |
public setDefault ( System value_Renamed ) : void | ||
value_Renamed | System | |
Результат | void |
public setTileCompVal ( int t, int c, System value_Renamed ) : void | ||
t | int | Tie index /// /// |
c | int | Component index /// /// |
value_Renamed | System | |
Результат | void |
public setTileDef ( int t, System value_Renamed ) : void | ||
t | int | |
value_Renamed | System | |
Результат | void |
protected System.Collections.Generic.Dictionary |
||
Результат | System.Object>.System.Collections.Generic.Dictionary |