~eda-qa/dhlib/main

« back to all changes in this revision

Viewing changes to restricted/app-fortress/fortress/TrashDropTarget.hx

  • Committer: edA-qa mort-ora-y
  • Date: 2010-02-16 05:36:32 UTC
  • Revision ID: eda-qa@disemia.com-20100216053632-60lt7fndfi3fgblw
first

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package fortress;
 
2
 
 
3
class TrashDropTarget extends StdBuildDropTarget
 
4
{
 
5
        public function new( )
 
6
        {
 
7
                super( "Destroy", new IClipPanelTrash() );
 
8
        }
 
9
        
 
10
        override public function acceptObject( bo : BuildObject, sp : flash.geom.Point ) : Bool
 
11
        {
 
12
                //simply do nothing with it
 
13
                SoundManager.playSound( "Trash", 1 );
 
14
                return true;
 
15
        }
 
16
        
 
17
        override public function canAcceptObject( bo : BuildObject, sp : flash.geom.Point ) : Bool
 
18
        {
 
19
                return true;
 
20
        }
 
21
}