Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2018
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.runouw.ll.engine.levelData.items.data.trigger
  2. {
  3.    import com.runouw.ll.engine.GameEngine;
  4.    import com.runouw.ll.engine.levelData.items.core.Item;
  5.    import flash.display.MovieClip;
  6.    
  7.    public class TriggerFunction
  8.    {
  9.        
  10.      
  11.       public var index:int;
  12.      
  13.       public var sequence:FunctionSequence;
  14.      
  15.       public function TriggerFunction(param1:int, param2:FunctionSequence)
  16.       {
  17.          super();
  18.          this.index = param1;
  19.          this.sequence = param2;
  20.       }
  21.      
  22.       public function decode(param1:Array) : void
  23.       {
  24.       }
  25.      
  26.       public function old_decode(param1:Array) : void
  27.       {
  28.       }
  29.      
  30.       public function encode() : String
  31.       {
  32.          return "";
  33.       }
  34.      
  35.       public function call() : int
  36.       {
  37.          return this.index + 1;
  38.       }
  39.      
  40.       public function reset() : void
  41.       {
  42.       }
  43.      
  44.       public function getName() : String
  45.       {
  46.          return "TODO: get name of: [object TriggerFunction]";
  47.       }
  48.      
  49.       protected function getLinkage(param1:String, param2:Boolean = false) : Vector.<Item>
  50.       {
  51.          var _loc3_:* = null;
  52.          if(FunctionSequence.isSelfTag(param1))
  53.          {
  54.             _loc3_ = new Vector.<Item>();
  55.             _loc3_.push(this.sequence.selfReference);
  56.          }
  57.          else if(param2)
  58.          {
  59.             _loc3_ = GameEngine.getLinkageFromGlobal(param1);
  60.          }
  61.          else
  62.          {
  63.             _loc3_ = GameEngine.getLinkage(param1);
  64.          }
  65.          return _loc3_;
  66.       }
  67.      
  68.       protected function getLinkageFromGlobal(param1:String) : Vector.<Item>
  69.       {
  70.          return this.getLinkage(param1,true);
  71.       }
  72.      
  73.       public function getIconNum() : int
  74.       {
  75.          return 0;
  76.       }
  77.      
  78.       public function showDisplay(param1:MovieClip) : void
  79.       {
  80.          param1.gotoAndStop(1);
  81.       }
  82.      
  83.       public function displayEnterFrame(param1:MovieClip) : void
  84.       {
  85.       }
  86.      
  87.       public function removeDisplay(param1:MovieClip) : void
  88.       {
  89.          param1.gotoAndStop(1);
  90.       }
  91.      
  92.       public function ldMove(param1:Number, param2:Number) : void
  93.       {
  94.       }
  95.    }
  96. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement