diff options
| author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-09 11:36:07 +0100 | 
|---|---|---|
| committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-09 11:36:07 +0100 | 
| commit | f5169437395a8cdec4654c7d2bfef952f3dcde2c (patch) | |
| tree | 8bee65f8b165339fa341ce1465b1cf0400bde4e8 | |
| parent | 54d93519e90569a6f127da301e6e612ef89f2fc3 (diff) | |
Improved Doxygen
| -rw-r--r-- | src/crepe/api/AI.h | 19 | 
1 files changed, 17 insertions, 2 deletions
diff --git a/src/crepe/api/AI.h b/src/crepe/api/AI.h index 9f5c0a8..18276a1 100644 --- a/src/crepe/api/AI.h +++ b/src/crepe/api/AI.h @@ -61,9 +61,24 @@ public:  		if (on(PATH_FOLLOW)) flags ^= PATH_FOLLOW;  	} -	//! Add a path node to the path +	/** +	 * \brief Add a path node +	 * +	 * \note The path is not relative to the entity's position (it is an absolute path) +	 * +	 * \param node The path node to add +	 */  	void add_path_node(vec2 node) { path.push_back(node); } -	//! Create a circle path +	/** +	 * \brief Make a circle path +	 * +	 * \note The path is not relative to the entity's position (it is an absolute path) +	 * +	 * \param radius The radius of the circle (in game units) +	 * \param center The center of the circle (in game units) +	 * \param start_angle The start angle of the circle (in radians) +	 * \param clockwise The direction of the circle +	 */  	void make_circle_path(float radius, vec2 center = {0, 0}, float start_angle = 0,  						  bool clockwise = true);  |