/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/ Class (with prototype object) */ /** * Base class of a game entity * @class Entity */ Entity = function() { }; /** * Render entity * @param {CanvasRenderingContext2D} dc Device context */ Entity.prototype.render = function(dc) { // Instance method! }; /** * Get new instance of entity * @param {string} type Type of entity to instantiate * @returns {@link Entity} */ Entity.getInstance: function(type) { // Static method! };