home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / kung_fu.swf / scripts / __Packages / com / KidFighting / objects / CSkill.as < prev   
Encoding:
Text File  |  2006-06-13  |  1.1 KB  |  60 lines

  1. class com.KidFighting.objects.CSkill
  2. {
  3.    var type;
  4.    var performing;
  5.    var invincible;
  6.    var _lable;
  7.    var _observer;
  8.    function CSkill()
  9.    {
  10.       this.type = "item";
  11.       this.performing = false;
  12.       this.invincible = false;
  13.    }
  14.    function set lable(lb)
  15.    {
  16.       this._lable = lb;
  17.    }
  18.    function get lable()
  19.    {
  20.       return this._lable;
  21.    }
  22.    function onMotionFinished()
  23.    {
  24.    }
  25.    function onMotionStopped()
  26.    {
  27.    }
  28.    function onMotionUpdated()
  29.    {
  30.    }
  31.    function condition()
  32.    {
  33.       return !this.performing;
  34.    }
  35.    function perform()
  36.    {
  37.    }
  38.    function stop()
  39.    {
  40.    }
  41.    function observeCharacterTween(twn)
  42.    {
  43.       this._observer = ds.transitions.TweenObserver.observeTween(twn);
  44.       this.addListener(this);
  45.    }
  46.    function unobserveCharacterTween()
  47.    {
  48.       this.removeListener(this);
  49.       this._observer.unobserve();
  50.    }
  51.    function addListener(lsn)
  52.    {
  53.       this._observer.addListener(lsn);
  54.    }
  55.    function removeListener(lsn)
  56.    {
  57.       this._observer.removeListener(lsn);
  58.    }
  59. }
  60.