* Example on AI script conversion (and minor correction in CreatureScript).

--HG--
branch : trunk
This commit is contained in:
XTZGZoReX
2010-08-06 20:42:42 +02:00
parent 23c434cfd8
commit 731eaf72cb
3 changed files with 127 additions and 121 deletions

View File

@@ -487,7 +487,7 @@ class CreatureScript : public ScriptObject, public UpdatableScript<Creature>
virtual uint32 OnDialogStatus(Player* player, Creature* creature) { return 0; }
// Called when a CreatureAI object is needed for the creature.
virtual CreatureAI* OnGetAI() { return NULL; }
virtual CreatureAI* OnGetAI(Creature* creature) const { return NULL; }
};
class GameObjectScript : public ScriptObject, public UpdatableScript<GameObject>