src/ai/api/ai_cargo.hpp
branchnoai
changeset 9530 5b93bc87cc5e
parent 9529 5f26f4bc574b
child 9532 539c48d64eea
--- a/src/ai/api/ai_cargo.hpp	Sun Mar 25 16:10:40 2007 +0000
+++ b/src/ai/api/ai_cargo.hpp	Sun Mar 25 16:32:02 2007 +0000
@@ -61,10 +61,10 @@
 	SQAICargo.PreRegister(engine);
 	SQAICargo.AddConstructor(engine);
 
-	SQAICargo.DefSQFunction(engine, &AICargo::IsValidCargo,   "IsValidCargo");
-	SQAICargo.DefSQFunction(engine, &AICargo::GetCargoLabel,  "GetCargoLabel");
-	SQAICargo.DefSQFunction(engine, &AICargo::IsFreight,      "IsFreight");
-	SQAICargo.DefSQFunction(engine, &AICargo::GetCargoIncome, "GetCargoIncome");
+	SQAICargo.DefSQMethod(engine, &AICargo::IsValidCargo,   "IsValidCargo");
+	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoLabel,  "GetCargoLabel");
+	SQAICargo.DefSQMethod(engine, &AICargo::IsFreight,      "IsFreight");
+	SQAICargo.DefSQMethod(engine, &AICargo::GetCargoIncome, "GetCargoIncome");
 
 	SQAICargo.PostRegister(engine);
 }