home *** CD-ROM | disk | FTP | other *** search
- class RespawnSpot
- {
- var nom = new String();
- var mcRef = null;
- var nextGoTo = new String();
- function RespawnSpot(l_mcRef, l_nextGoTo)
- {
- this.nom = l_mcRef._name;
- this.mcRef = l_mcRef;
- this.nextGoTo = l_nextGoTo;
- this.mcRef._visible = false;
- }
- function GetAbsDistWithObj(l_aCoord, l_nextGoTo)
- {
- var _loc2_ = this.GetStageCoord();
- return Math.sqrt((_loc2_.x - l_aCoord.x) * (_loc2_.x - l_aCoord.x) + (_loc2_.y - l_aCoord.y) * (_loc2_.y - l_aCoord.y));
- }
- function GetName()
- {
- return this.nom;
- }
- function GetNextGoTo()
- {
- return this.nextGoTo;
- }
- function GetPropCoord()
- {
- var _loc2_ = new Object();
- _loc2_.x = this.mcRef._x;
- _loc2_.y = this.mcRef._y;
- return _loc2_;
- }
- function GetStageCoord()
- {
- var _loc2_ = this.GetPropCoord();
- this.mcRef._parent.localToGlobal(_loc2_);
- return _loc2_;
- }
- }
-