What is the difference between a function specified as a prototype and one that's not? For example,
Tilemap.prototype._sortChildren = function()
and
Tilemap.isVisibleTile = function(tileId)
Can I alias both of them, and do I alias them and call them in the same way?
When I call the aliased function, how do I know whether I have to pass in this as a first parameter, and when I don't? Tilemap.isVisibleTile uses this.TILE_ID_MAX so I assume whether I pass in this has nothing to do with whether it's a prototype function?
Tilemap.prototype._sortChildren = function()
and
Tilemap.isVisibleTile = function(tileId)
Can I alias both of them, and do I alias them and call them in the same way?
When I call the aliased function, how do I know whether I have to pass in this as a first parameter, and when I don't? Tilemap.isVisibleTile uses this.TILE_ID_MAX so I assume whether I pass in this has nothing to do with whether it's a prototype function?

