Exemplo n.º 1
0
 //-----------------------------------------------------------------------------
 // Constructor
 //-----------------------------------------------------------------------------
 public UnitTool()
 {
     unit				= null;
     drawAboveUnit		= false;
     animationPlayer		= new AnimationPlayer();
     collisionBox		= new Rectangle2I(-1, -1, 2, 2);
     toolType			= UnitToolType.Visual;
     isEquipped			= false;
     isPhysicsEnabled	= true;
     imageVariantID		= GameData.VARIANT_NONE;
     syncAnimationWithDirection	= true;
 }
Exemplo n.º 2
0
        //-----------------------------------------------------------------------------
        // Constructor
        //-----------------------------------------------------------------------------

        public UnitTool()
        {
            unit                       = null;
            drawAboveUnit              = false;
            animationPlayer            = new AnimationPlayer();
            collisionBox               = new Rectangle2I(-1, -1, 2, 2);
            toolType                   = UnitToolType.Visual;
            isEquipped                 = false;
            isPhysicsEnabled           = true;
            imageVariantID             = GameData.VARIANT_NONE;
            syncAnimationWithDirection = true;
        }