Hi
I have been learning Doxygen for my job (embedded software development in C) and was wondering if I could use Doxygen to document my attempt at an AI (YasserAI).
Is there a Doxyfile that anyone has used to do this for their AI I can borrow ?
Regards
Yasser
Documenting my AI with Doxygen
Moderator: OpenTTD Developers
Re: Documenting my AI with Doxygen
Quite some time ago I asked the same question: http://www.tt-forums.net/viewtopic.php?p=953289#p953289
Nevertheless if anyone has a solution since then I'm also interested
Nevertheless if anyone has a solution since then I'm also interested

Re: Documenting my AI with Doxygen
I find that just having the doxygen text in the source file is enough, and I did some documenting in Busy Bee that way:
It is not quite satisfactory though, as there is no good place to put the type of the data.
In CosrixTH (Lua code), they do
An alternative that I use in Python is 'epydoc' (epydoc.sourceforge.net), which doesYou the type explicitly at a line here.
Code: Select all
// Find cargo sources.
// @param cargo_index Cargo index (index in this.cargoes).
// @return List of resources that produce the requested cargo, list of
// 'ind' or 'town' number, 'prod' produced amount, 'transp' transported amount, and 'loc' location.
function BusyBeeClass::FindSources(cargo_index)
In CosrixTH (Lua code), they do
Code: Select all
--! Spawn a patient from a spawn point for the given hospital.
--!param hospital (Hospital) Hospital that the new patient should visit.
--!return (Patient entity) The spawned patient, or 'nil' if no patient spawned.
function World:spawnPatient(hospital)
Code: Select all
def load_dom(fname):
"""
Load the XML file as DOM into memory.
@param fname: File to load.
@type fname: C{str}
"""
Being a retired OpenTTD developer does not mean I know what I am doing.
Who is online
Users browsing this forum: No registered users and 12 guests