home *** CD-ROM | disk | FTP | other *** search
- class AiGoTo
- {
- var nom = new String();
- var nextGoToPossibilities = new Array();
- var mcRef = null;
- function AiGoTo(l_mcRef, l_nextGoToPossibilities)
- {
- this.nom = l_mcRef._name;
- this.mcRef = l_mcRef;
- this.nextGoToPossibilities = l_nextGoToPossibilities;
- this.mcRef._visible = false;
- }
- function GetName()
- {
- return this.nom;
- }
- function GetNextGoTo()
- {
- return this.nextGoToPossibilities[_global.C.utils.GetRandomB(0,this.nextGoToPossibilities.length - 1)];
- }
- function GetStageCoord()
- {
- var _loc2_ = new Object();
- _loc2_.x = this.mcRef._x;
- _loc2_.y = this.mcRef._y;
- this.mcRef._parent.localToGlobal(_loc2_);
- return _loc2_;
- }
- function GetZone()
- {
- return _global.C.utils.GetHitZone(this.GetStageCoord);
- }
- }
-