home *** CD-ROM | disk | FTP | other *** search
- class TrailTimmy extends BaseObject
- {
- var mcRef;
- static var nSTATICRotation = 0;
- function TrailTimmy(__mcRef, _sAddonState)
- {
- super(__mcRef);
- if(_sAddonState == undefined)
- {
- this.doDestroy();
- }
- else
- {
- TrailTimmy.nSTATICRotation += 30;
- this.mcRef._rotation = TrailTimmy.nSTATICRotation;
- this.setState("Out" + _sAddonState);
- LevelManager.Instance.doAddListener(this);
- }
- }
- function doDestroy()
- {
- LevelManager.Instance.doRemoveListener(this);
- super.doDestroy();
- }
- function doOutSuit()
- {
- this.doOut();
- }
- function doOutNormal()
- {
- this.doOut();
- }
- function doOutGum()
- {
- this.doOut();
- }
- function doOut()
- {
- if(this.isStateComplete())
- {
- this.doDestroy();
- }
- }
- }
-