home *** CD-ROM | disk | FTP | other *** search
/ Ice Age Fan CD 1 / CD1_Scrat.iso / flash / data / game.swf / scripts / asCode / screenCellClass.as < prev    next >
Encoding:
Text File  |  2012-07-04  |  1.2 KB  |  62 lines

  1. package asCode
  2. {
  3.    import flash.geom.Point;
  4.    
  5.    public class screenCellClass
  6.    {
  7.       private var currentPosition:int;
  8.       
  9.       private var backType:int;
  10.       
  11.       private var xLoc:Number = 0;
  12.       
  13.       private var yLoc:Number = 0;
  14.       
  15.       private var loc:Point;
  16.       
  17.       public function screenCellClass(param1:int)
  18.       {
  19.          loc = new Point();
  20.          super();
  21.          currentPosition = param1;
  22.       }
  23.       
  24.       public function updatePosition(param1:Number, param2:int) : void
  25.       {
  26.          yLoc = param1;
  27.          backType = param2;
  28.       }
  29.       
  30.       public function increaseCellPosition() : void
  31.       {
  32.          currentPosition += 2;
  33.       }
  34.       
  35.       public function decreaseCellPosition() : void
  36.       {
  37.          currentPosition -= 2;
  38.       }
  39.       
  40.       public function getCellPosition() : int
  41.       {
  42.          return currentPosition;
  43.       }
  44.       
  45.       public function set updateY(param1:Number) : void
  46.       {
  47.          yLoc = param1;
  48.       }
  49.       
  50.       public function get getY() : Number
  51.       {
  52.          return yLoc;
  53.       }
  54.       
  55.       public function get getType() : Number
  56.       {
  57.          return backType;
  58.       }
  59.    }
  60. }
  61.  
  62.