예제 #1
0
        public void Set(Name name, Image image, float x, float y, float width, float height)
        {
            this.name        = name;
            this.pImage      = image;
            this.pScreenRect = new Azul.Rect(x, y, width, height);
            Debug.Assert(pScreenRect != null);

            this.x = x;
            this.y = y;

            // Configure Azul Sprite
            this.pAzulSprite = createAzulSprite(image);
        }
예제 #2
0
        public override void Clean()
        {
            base.Clean();

            // TODO Refactor once we have defaults for these
            this.pImage      = null;
            this.name        = Sprite.Name.Uninitialized;
            this.pAzulSprite = null;

            this.x     = 0.0f;
            this.y     = 0.0f;
            this.sx    = 1.0f;
            this.sy    = 1.0f;
            this.angle = 0.0f;
        }
예제 #3
0
 public void SetAzulSprite(Azul.Sprite newSprite)
 {
     this.pAzulSprite = newSprite;
 }