Update doxygen comment style.

This commit is contained in:
Mark de Wever 2008-06-23 16:59:39 +00:00
parent 9e944185f1
commit e1877a4279
2 changed files with 12 additions and 10 deletions

View file

@ -13,8 +13,7 @@
See the COPYING file for more details.
*/
//! @file ai_dfool.cpp
//!
/** @file ai_dfool.cpp */
#include "global.hpp"
@ -98,7 +97,7 @@ namespace dfool {
// LOG_STREAM(info, ai)<<"dfool filter:"<<std::endl;
unit_list filtered_units=filter_units(ff,my_units,get_info().units);
//! @todo FIXME: add sorting
/** @todo FIXME: add sorting */
for(unit_list::iterator i = filtered_units.begin(); i != filtered_units.end() && (num > order_units.size()); ++i) {
unit_map::iterator ui=unit(*i,get_info().units);
@ -251,7 +250,7 @@ namespace dfool {
int closest_distance = -1;
std::pair<location,location> closest_move;
//! @todo This undoubtedly could be done more cleanly
/** @todo This undoubtedly could be done more cleanly */
for(move_map::const_iterator i = dstsrc.begin(); i != dstsrc.end(); ++i) {
// Must restrict move_map to only unit that is moving.
if(i->second==m->first){

View file

@ -12,9 +12,10 @@
See the COPYING file for more details.
*/
//! @file ai_dfool.hpp
//! The Standard-AI ??.
//! This ai uses for its decisions only units it has "seen".
/**
* @file ai_dfool.hpp
* This ai uses for its decisions only units it has "seen".
*/
#ifndef AI_DFOOL_HPP_INCLUDED
#define AI_DFOOL_HPP_INCLUDED
@ -92,9 +93,11 @@ namespace dfool {
std::string evaluate_tokens(std::list<std::string>&);
};
//! An ai that keeps track of what it has "seen",
//! does not target units that it has not "seen",
//! and does not make decisions based on unseen units.
/**
* An ai that keeps track of what it has "seen",
* does not target units that it has not "seen",
* and does not make decisions based on unseen units.
*/
class dfool_ai : public ai_interface {
public:
dfool_ai(info& i) : ai_interface(i),unit_memory_(i.teams[i.team_num-1].ai_memory()){}