//--------------------------------------------------------------------------------------------------------- // 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); }
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); }
//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); }