mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-09 19:36:49 +00:00
Inlined ai::comand_history_item.
This commit is contained in:
parent
abad9f00be
commit
b884d4f1d9
@ -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
|
||||
// =======================================================================
|
||||
|
@ -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_;
|
||||
|
Loading…
x
Reference in New Issue
Block a user