Inlined ai::comand_history_item.

This commit is contained in:
Guillaume Melquiond 2009-12-06 09:57:19 +00:00
parent abad9f00be
commit b884d4f1d9
2 changed files with 5 additions and 25 deletions

View File

@ -253,28 +253,6 @@ const std::string holder::get_ai_identifier() const
return cfg_["id"];
}
// =======================================================================
// AI COMMAND HISTORY ITEM
// =======================================================================
command_history_item::command_history_item( side_number number, const std::string& command )
: number_(number), command_(command)
{
}
int command_history_item::get_number() const
{
return this->number_;
}
const std::string& command_history_item::get_command() const
{
return this->command_;
}
// =======================================================================
// LIFECYCLE
// =======================================================================

View File

@ -94,11 +94,13 @@ private:
class command_history_item{
public:
command_history_item(int number, const std::string& command);
command_history_item(int number, const std::string &command)
: number_(number), command_(command)
{}
int get_number() const;
int get_number() const { return number_; }
const std::string& get_command() const;
const std::string& get_command() const { return command_; }
private:
int number_;