Commit 47acc265 authored by quentin.vrel's avatar quentin.vrel
parents 0ba367d6 f163ad41
...@@ -122,18 +122,30 @@ export default class Tile { ...@@ -122,18 +122,30 @@ export default class Tile {
this.id = id; this.id = id;
} }
/**
* Get name of the Tile
*/
getName(){ getName(){
return TILE_NAMES[this.id]; return TILE_NAMES[this.id];
} }
/**
* Get the symbol of the Tile
*/
getSVG(){ getSVG(){
return TILE_GLYPHS[this.id]; return TILE_GLYPHS[this.id];
} }
/**
* Get the code of the Tile
*/
getCode(){ getCode(){
return TILE_CODES[this.id]; return TILE_CODES[this.id];
} }
/**
* Get the family of the Tile
*/
getFamily(){ getFamily(){
const divEucl = Math.floor(this.id/9); const divEucl = Math.floor(this.id/9);
if(divEucl<=3){ 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