public override void Wash() { this.x = 0.0f; this.y = 0.0f; this.name = Name.Uninitialized; this.pSprite = null; }
public static ProxySprite Find(ProxySprite.Name name) { ProxySpriteManager pMan = ProxySpriteManager.PrivGetInstance(); pMan.poNodeCompare.SetName(name); ProxySprite pData = (ProxySprite)pMan.BaseFind(pInstance.poNodeCompare); return pData; }
public ProxySprite(ProxySprite.Name name, GameSprite gSprite) { this.name = name; this.x = 0.0f; this.y = 0.0f; this.pSprite = gSprite; }
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; }
//---------------------------------------------------------------------------------- // 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; }
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; }
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; }
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); }
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); }
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); }
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); }
//--------------------------------------------------------------------------------------------------------- // 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); }
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); }
// 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); }
public void SetName(Name name) { this.name = name; }
public void SetName(ProxySprite.Name newName) { this.name = newName; }
public void SetName(Name inName) { this.name = inName; }
public void SetName(ProxySprite.Name theName) { this.name = theName; }
public void setName(ProxySprite.Name name) { this.name = name; }