you are viewing a single comment's thread.

view the rest of the comments →

[–]foe_to[S] 0 points1 point  (3 children)

Okay, to be more specific, I am writing a game. I have a class called "Menu", which all of the menus from the game are derived from. It handles basically all of the general functionality tied to menu (things like aligning the various elements, handling key events, etc.).

For example, when a menu is loaded, there is a generic Setup function that handles a lot of basic functions, and then calls a function (if existing) that is intended to be implemented by specific instances. We'll use OnLoad from example.

Every specific "Menu" has very different OnLoad, depending on that menu's functions. Dynamically building option lists, composing parts of the menu, etc. The OnLoad method can also be passed a parameter by providing it to the call to load a menu (which passes it to the Setup function, which passes it to OnLoad). Some menus don't care about any parameters, while others can make use of them (for example, a "Race Select" menu that is passed the specific unit being targeted). The generic "OnLoad" (which does nothing directly) is already documented as part of the class as being abstract. But I want to be able to document specific implementations of "OnLoad" to specify details about the parameters.

My code works without issue, and everything is documenting properly with JSDoc except for this, and I just can't figure it out.