Commit 47acc265 authored by quentin.vrel's avatar quentin.vrel
parents 0ba367d6 f163ad41
......@@ -122,18 +122,30 @@ export default class Tile {
this.id = id;
}
/**
* Get name of the Tile
*/
getName(){
return TILE_NAMES[this.id];
}
/**
* Get the symbol of the Tile
*/
getSVG(){
return TILE_GLYPHS[this.id];
}
/**
* Get the code of the Tile
*/
getCode(){
return TILE_CODES[this.id];
}
/**
* Get the family of the Tile
*/
getFamily(){
const divEucl = Math.floor(this.id/9);
if(divEucl<=3){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment