(svn r23355) -Codechange: rename all AI* to Script* (Rubidium)

This commit is contained in:
truebrain
2011-11-29 23:15:35 +00:00
parent afdb67a353
commit 98103121d4
175 changed files with 4048 additions and 4034 deletions

View File

@@ -7,28 +7,28 @@
* See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
*/
/** @file script_accounting.cpp Implementation of AIAccounting. */
/** @file script_accounting.cpp Implementation of ScriptAccounting. */
#include "../../stdafx.h"
#include "script_accounting.hpp"
Money AIAccounting::GetCosts()
Money ScriptAccounting::GetCosts()
{
return this->GetDoCommandCosts();
}
void AIAccounting::ResetCosts()
void ScriptAccounting::ResetCosts()
{
this->SetDoCommandCosts(0);
}
AIAccounting::AIAccounting()
ScriptAccounting::ScriptAccounting()
{
this->last_costs = this->GetDoCommandCosts();
this->SetDoCommandCosts(0);
}
AIAccounting::~AIAccounting()
ScriptAccounting::~ScriptAccounting()
{
this->SetDoCommandCosts(this->last_costs);
}