public SpriteNode Attach(ProxySprite pNode) { SpriteNode pSpriteNode = (SpriteNode)this.baseAdd(); pSpriteNode.Set(pNode, this); return(pSpriteNode); }
public AlienLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); this.x = x; this.y = y; locationX = lx; locationY = ly; }
public UFOLeaf(GameSpriteName spname, float x, float y, int lx, int ly) { proxySprite = new ProxySprite(spname, x, y); CollisionObj = new CollisionObject(proxySprite); PlayBatchMan.Find(BatchName.Box).Add(CollisionObj.Box); proxySprite.GetSprite().SetColor(0.8f, 0, 0); this.x = x; this.y = y; locationX = lx; locationY = ly; name = "UFO Leaf"; }
public CollisionObject(ProxySprite pProxySprite) { Rect = new CollisionRect(pProxySprite.GetRect()); Box = new BoxSprite(Rect); }
public SpriteNode Attach(ProxySprite pNode) { return(pSpriteNodeMan.Attach(pNode)); }