public static void Remove(GameSprite pGameSprite) { //ensure call Create() first GameSpriteMan pMan = GameSpriteMan.GetInstance(); Debug.Assert(pMan != null); // ensure pGameSprite is not null Debug.Assert(pGameSprite != null); pMan.baseRemove(pGameSprite); }
public static void Destory() { //ensure call Create() first GameSpriteMan pMan = GameSpriteMan.GetInstance(); Debug.Assert(pMan != null); pMan.baseDestory(); pMan.poNodeForCompare = null; GameSpriteMan.pInstance = null; }
public static GameSprite Find(GameSprite.Name name) { //ensure call Create() first GameSpriteMan pMan = GameSpriteMan.GetInstance(); Debug.Assert(pMan != null); pMan.poNodeForCompare.setName(name); GameSprite pData = (GameSprite)pMan.baseFind(pMan.poNodeForCompare); return(pData); }
public static GameSprite Add(GameSprite.Name gameSpriteName, Image.Name imageName, float x, float y, float width, float height, Azul.Color pAzulColor = null) { //ensure call Create() first GameSpriteMan pMan = GameSpriteMan.GetInstance(); Debug.Assert(pMan != null); // add GameSprite to active list GameSprite pGameSprite = (GameSprite)pMan.baseAdd(); Debug.Assert(pGameSprite != null); // find the image by image name Image pImage = ImageMan.Find(imageName); Debug.Assert(pImage != null); // set new GameSprite pGameSprite.set(gameSpriteName, pImage, x, y, width, height, pAzulColor); return(pGameSprite); }