Example #1
0
 public override void Wash()
 {
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.name    = Name.Uninitialized;
     this.pSprite = null;
 }
Example #2
0
 public static ProxySprite Find(ProxySprite.Name name)
 {
     ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();
     pMan.poNodeCompare.SetName(name);
     ProxySprite pData = (ProxySprite)pMan.BaseFind(pInstance.poNodeCompare);
     return pData;
 }
Example #3
0
 public ProxySprite(ProxySprite.Name name, GameSprite gSprite)
 {
     this.name    = name;
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.pSprite = gSprite;
 }
Example #4
0
 public void Wash()
 {
     this.name    = ProxySprite.Name.Uninitialized;
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.pSprite = null;
 }
Example #5
0
 //----------------------------------------------------------------------------------
 // Constructor
 //----------------------------------------------------------------------------------
 public ProxySprite() : base()
 {
     this.name    = ProxySprite.Name.Uninitialized;
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.pSprite = null;
 }
Example #6
0
 private new void Clear()   // the "new" is there to shut up warning - overriding at derived class
 {
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.pSprite = null;
     this.name    = Name.Uninitialized;
 }
Example #7
0
 public new void Clear()
 {
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.name    = Name.Unitialized;
     this.pSprite = null;
 }
Example #8
0
 public void Set(GameSprite.Name name)
 {
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.name    = ProxySprite.Name.Proxy;
     this.pSprite = GameSpriteMan.Find(name);
     Debug.Assert(this.pSprite != null);
 }
Example #9
0
 public ProxySprite(GameSprite.Name theName) : base()
 {
     this.name    = ProxySprite.Name.Proxy;
     this.x       = 0.0f;
     this.y       = 0.0f;
     this.sx      = 1.0f;
     this.sy      = 1.0f;
     this.pSprite = GameSpriteManager.Find(theName);
     Debug.Assert(this.pSprite != null);
 }
Example #10
0
        public void Set(Sprite.Name name)
        {
            this.name = ProxySprite.Name.Proxy;

            this.x = 0.0f;
            this.y = 0.0f;

            this.pSprite = SpriteManager.Find(name);
            Debug.Assert(this.pSprite != null);
        }
Example #11
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeCompare.SetName(name);

            ProxySprite pNode = (ProxySprite)pMan.BaseFind(pMan.poNodeCompare);

            return(pNode);
        }
Example #12
0
        //---------------------------------------------------------------------------------------------------------
        // Methods
        //---------------------------------------------------------------------------------------------------------

        public ProxySprite(GameSprite.Name name, float posX = 0.0f, float posY = 0.0f)
        {
            this.name = ProxySprite.Name.Proxy;

            this.x  = posX;
            this.y  = posY;
            this.sx = 1.0f;
            this.sy = 1.0f;

            this.pSprite = GameSpriteManager.Find(name);
            Debug.Assert(this.pSprite != null);
        }
        public static ProxySprite Find(ProxySprite.Name name)
        {
            //ensure call Create() first
            ProxySpriteMan pMan = ProxySpriteMan.GetInstance();

            Debug.Assert(pMan != null);

            pMan.poNodeForCompare.setName(name);

            ProxySprite pData = (ProxySprite)pMan.baseFind(pMan.poNodeForCompare);

            return(pData);
        }
Example #14
0
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance();

            Debug.Assert(pMan != null);

            pMan.poCompareNode.name = name;

            ProxySprite pData = (ProxySprite)pMan.BaseFind(pMan.poCompareNode);

            Debug.Assert(pData != null);
            return(pData);
        }
        public static ProxySprite Find(ProxySprite.Name theName)
        {
            ProxySpriteManager pSpriteManager = ProxySpriteManager.privGetInstance();

            Debug.Assert(pSpriteManager != null);

            // set common compare node, static object ref
            pSpriteManager.poNodeCompare.SetName(theName);

            //find and return ref
            ProxySprite pSprite = (ProxySprite)pSpriteManager.baseFind(pSpriteManager.poNodeCompare);

            return(pSprite);
        }
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteMan pMan = ProxySpriteMan.privGetInstance();

            Debug.Assert(pMan != null);

            // Compare functions only compares two Nodes

            // So:  Use the Compare Node - as a reference
            //      use in the Compare() function
            pMan.poNodeCompare.SetName(name);

            ProxySprite pData = (ProxySprite)pMan.baseFind(pMan.poNodeCompare);

            return(pData);
        }
Example #17
0
        // PA2: Factory method, create and add image into actives
        public ProxySprite Add(ProxySprite.Name name, GameSprite gSprite, float initX, float initY)
        {
            // Create a new Proxy
            ProxySprite ret = (ProxySprite)this.PullFromReserved();

            ret.name    = name;
            ret.pSprite = gSprite;
            ret.x       = initX;
            ret.y       = initY;


            // Add it to the list
            this.Add(ret);

            return(ret);
        }
        public static ProxySprite Find(ProxySprite.Name name)
        {
            ProxySpriteManager pMan = ProxySpriteManager.privGetInstance();

            Debug.Assert(pMan != null);
            // Compare functions only compares two Nodes

            // So:  Use a reference node
            //      fill in the needed data
            //      use in the Compare() function
            Debug.Assert(pSpriteRef != null);
            pSpriteRef.SetName(name);

            ProxySprite pData = (ProxySprite)pMan.baseFindNode(pSpriteRef);

            return(pData);
        }
Example #19
0
 public void SetName(Name name)
 {
     this.name = name;
 }
Example #20
0
 public void SetName(ProxySprite.Name newName)
 {
     this.name = newName;
 }
Example #21
0
 public void SetName(Name inName)
 {
     this.name = inName;
 }
Example #22
0
 public void SetName(ProxySprite.Name theName)
 {
     this.name = theName;
 }
Example #23
0
 public void setName(ProxySprite.Name name)
 {
     this.name = name;
 }