示例#1
0
        protected GameObject(GameObject.Name name, Sprite.Name spriteName, BoxSprite.Name boxSpriteName)
        {
            this.name   = name;
            this.x      = 0.0f;
            this.y      = 0.0f;
            this.speedX = 0;
            this.speedY = 0;

            this.pProxySprite = new ProxySprite(spriteName);
            Debug.Assert(this.pProxySprite != null);

            this.poColObj = new ColObject(this.pProxySprite, boxSpriteName);
            Debug.Assert(this.poColObj != null);
        }
示例#2
0
        protected GameObject(GameObject.Name objName, GameSprite.Name spriteName, int _index)
        {
            this.name  = objName;
            this.index = _index;
            this.x     = 0.0f;
            this.y     = 0.0f;

            this.markForDeath = false;

            //this.pProxySprite = new ProxySprite(spriteName);
            this.pProxySprite = ProxySpriteManager.Add(spriteName);
            Debug.Assert(this.pProxySprite != null);

            this.poColObj = new ColObject(this.pProxySprite);
            Debug.Assert(this.poColObj != null);
        }
示例#3
0
        protected GameObject(GameObject.Name name)
        {
            this.name = name;
            this.x    = 0.0f;
            this.y    = 0.0f;

            this.pProxySprite = new ProxySprite(Sprite.Name.Uninitialized); //creates an uninit proxy
            Debug.Assert(this.pProxySprite != null);


            this.speedX       = 0;
            this.speedY       = 0;
            this.pProxySprite = new ProxySprite(Sprite.Name.Uninitialized);
            Debug.Assert(this.pProxySprite != null);

            this.poColObj = new ColObject(this.pProxySprite, BoxSprite.Name.Uninitialized);
            Debug.Assert(this.poColObj != null);
        }