// Tile images +|+ vangame
class Images
{
    //water has no texture thats why it is ""
    private imgurl = [
        //player (0)
        "css/icon/smile2.png", 

        //desert (1, 2)
        "css/icon/desert.png", "css/icon/desertplains.png", 

        //plains (3, 4)
        "css/icon/plains.png", "css/icon/plains2.png",

        //trees (5, 6)
        "css/icon/tree.png", "css/icon/tree2.png", 

        //hills (7, 8)
        "css/icon/hill.png", "css/icon/hill2.png", 

        //mountains (9, 10, 11, 12)
        "css/icon/mntn.png", "css/icon/mntn2.png", "css/icon/mntn3.png", "css/icon/snow.png",

        //buildings (13, 14)
        "css/icon/town.png", "css/icon/outpost.png",

        // roads (15, 16)
        "css/icon/road_l_hor.png", "css/icon/road_l_ver.png",

        // (17, 18)
        "css/icon/road_l_int.png", "css/icon/road_l_int_e.png",

        // (19, 20)
        "css/icon/road_l_int_n.png", "css/icon/road_l_int_s.png",

        // (21, 22)
        "css/icon/road_l_int_w.png", "css/icon/road_l_cur_ne.png",

        // (23, 24)
        "css/icon/road_l_cur_nw.png", "css/icon/road_l_cur_se.png",

        // roads end (25)
        "css/icon/road_l_cur_sw.png",

        //test npcs (26)
        "css/icon/smile3.png",

        //Wildlife Addition --

        //bushes (27, 28, 29)
        "css/icon/bush.png", "css/icon/bush2.png", "css/icon/bush3.png",

        //cutted trees (30, 31)
        "css/icon/tree_cut.png", "css/icon/tree2_cut.png"
    ];
    
    constructor(preload:boolean = true) {
        if(preload)
        {
            for (var i = 0; i < this.imgurl.length; i++)
            {
                document.getElementById('preload').innerHTML+="<img src='"+this.imgurl[i]+"'/>";
            }
        }
    }

    public getTileImage(id)
    {
        return this.imgurl[id];
    }
}
