home *** CD-ROM | disk | FTP | other *** search
- class com.KidFighting.objects.CSkill
- {
- var type;
- var performing;
- var invincible;
- var _lable;
- var _observer;
- function CSkill()
- {
- this.type = "item";
- this.performing = false;
- this.invincible = false;
- }
- function set lable(lb)
- {
- this._lable = lb;
- }
- function get lable()
- {
- return this._lable;
- }
- function onMotionFinished()
- {
- }
- function onMotionStopped()
- {
- }
- function onMotionUpdated()
- {
- }
- function condition()
- {
- return !this.performing;
- }
- function perform()
- {
- }
- function stop()
- {
- }
- function observeCharacterTween(twn)
- {
- this._observer = ds.transitions.TweenObserver.observeTween(twn);
- this.addListener(this);
- }
- function unobserveCharacterTween()
- {
- this.removeListener(this);
- this._observer.unobserve();
- }
- function addListener(lsn)
- {
- this._observer.addListener(lsn);
- }
- function removeListener(lsn)
- {
- this._observer.removeListener(lsn);
- }
- }
-