home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / beauty_resort.swf / scripts / classes / basic / Path / TFPathNode.as < prev   
Encoding:
Text File  |  2008-09-04  |  1.5 KB  |  73 lines

  1. package classes.basic.Path
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.geom.Point;
  5.    
  6.    public class TFPathNode
  7.    {
  8.        
  9.       
  10.       private var arNeighbors:Array;
  11.       
  12.       private var pNode:MovieClip;
  13.       
  14.       public function TFPathNode(param1:MovieClip)
  15.       {
  16.          super();
  17.          this.pNode = param1;
  18.          this.arNeighbors = new Array();
  19.          this.pNode.userData = this;
  20.       }
  21.       
  22.       public function getX() : Number
  23.       {
  24.          return this.pNode.x;
  25.       }
  26.       
  27.       public function getY() : Number
  28.       {
  29.          return this.pNode.y;
  30.       }
  31.       
  32.       public function playAnimDest() : *
  33.       {
  34.          this.pNode.gotoAndPlay("loop");
  35.       }
  36.       
  37.       public function getName() : String
  38.       {
  39.          return this.pNode.name;
  40.       }
  41.       
  42.       public function getPoint() : Point
  43.       {
  44.          return new Point(this.pNode.x,this.pNode.y);
  45.       }
  46.       
  47.       public function getNeighbors() : Array
  48.       {
  49.          return this.arNeighbors;
  50.       }
  51.       
  52.       public function pushNeighbor(param1:TFPathNode) : *
  53.       {
  54.          this.arNeighbors.push(param1);
  55.       }
  56.       
  57.       public function stopAnimDest() : *
  58.       {
  59.          this.pNode.gotoAndPlay("end");
  60.       }
  61.       
  62.       public function reset() : *
  63.       {
  64.          this.arNeighbors.splice(0);
  65.       }
  66.       
  67.       public function getNode() : MovieClip
  68.       {
  69.          return this.pNode;
  70.       }
  71.    }
  72. }
  73.