예제 #1
0
        //---------------------------------------------------------------------------------------------------------
        // Constructor
        //---------------------------------------------------------------------------------------------------------
        protected GameObject(GameObject.Name gameName, GameSprite.Name spriteName)
        {
            this.name          = gameName;
            this.x             = 0.0f;
            this.y             = 0.0f;
            this.bMarkForDeath = false;
            this.pProxySprite  = ProxySpriteMan.Add(spriteName);

            this.poCollisionObject = new CollisionObject(this.pProxySprite);
            Debug.Assert(this.poCollisionObject != null);
        }
예제 #2
0
        protected GameObject(GameObject.Name gameName, GameSprite.Name spriteName)
        {
            this.name          = gameName;
            this.bMarkForDeath = false;
            this.x             = 0.0f;
            this.y             = 0.0f;
            this.poProxySprite = ProxySpriteMan.Add(spriteName);
            //this.pSpriteBatchMan = pSpriteBatchMan;

            this.poColObj = new ColObject(this.poProxySprite);
            Debug.Assert(this.poColObj != null);
        }
예제 #3
0
        //protected GameObject(GameObject.Name goName)
        //{
        //    this.name = goName;
        //    this.x = 0.0f;
        //    this.y = 0.0f;
        //    this.pProxySprite = null;
        //}

        protected GameObject(GameObject.Name goName, GameSprite.Name spriteName)
        {
            this.name          = goName;
            this.bMarkForDeath = false;
            this.x             = 0.0f;
            this.y             = 0.0f;

            this.bPlayerOpt = true;

            this.poProxySprite = ProxySpriteMan.Add(spriteName);

            this.poColObj = new ColObject(this.poProxySprite);
            Debug.Assert(this.poColObj != null);
        }