File diff r18781:e1de9a06f7cd → r18782:6453522c2154
src/command_type.h
Show inline comments
 
@@ -55,42 +55,42 @@ public:
 

	
 

	
 
	/**
 
	 * Adds the given cost to the cost of the command.
 
	 * @param cost the cost to add
 
	 */
 
	FORCEINLINE void AddCost(const Money &cost)
 
	inline void AddCost(const Money &cost)
 
	{
 
		this->cost += cost;
 
	}
 

	
 
	void AddCost(const CommandCost &cmd_cost);
 

	
 
	/**
 
	 * Multiplies the cost of the command by the given factor.
 
	 * @param factor factor to multiply the costs with
 
	 */
 
	FORCEINLINE void MultiplyCost(int factor)
 
	inline void MultiplyCost(int factor)
 
	{
 
		this->cost *= factor;
 
	}
 

	
 
	/**
 
	 * The costs as made up to this moment
 
	 * @return the costs
 
	 */
 
	FORCEINLINE Money GetCost() const
 
	inline Money GetCost() const
 
	{
 
		return this->cost;
 
	}
 

	
 
	/**
 
	 * The expense type of the cost
 
	 * @return the expense type
 
	 */
 
	FORCEINLINE ExpensesType GetExpensesType() const
 
	inline ExpensesType GetExpensesType() const
 
	{
 
		return this->expense_type;
 
	}
 

	
 
	/**
 
	 * Makes this #CommandCost behave like an error command.
 
@@ -134,22 +134,22 @@ public:
 
	}
 

	
 
	/**
 
	 * Did this command succeed?
 
	 * @return true if and only if it succeeded
 
	 */
 
	FORCEINLINE bool Succeeded() const
 
	inline bool Succeeded() const
 
	{
 
		return this->success;
 
	}
 

	
 
	/**
 
	 * Did this command fail?
 
	 * @return true if and only if it failed
 
	 */
 
	FORCEINLINE bool Failed() const
 
	inline bool Failed() const
 
	{
 
		return !this->success;
 
	}
 
};
 

	
 
/**