public Rectangle returnCollisionRectangle() { if (testForCollision) { collisionRectangle = sprite.returnCollisionRectangle(); } return(collisionRectangle); }
public StaticCoin(int locX, int locY) { score = new NonPlayerScoreItem(UtilityClass.coinScore, false); location = new Vector2(locX, locY); sprite = new StaticCoinSprite(location); type = ItemType.Coin; collisionRectangle = sprite.returnCollisionRectangle(); testForCollision = true; rigidbody = new AutonomousPhysicsObject(); }
public IceFlower(int locX, int locY) { score = new NonPlayerScoreItem(UtilityClass.itemScore, false); location = new Vector2(locX, locY); iceFlowerSprite = new IceFlowerSprite(location); type = ItemType.IceFlower; collisonRectangle = iceFlowerSprite.returnCollisionRectangle(); testForCollision = true; riseSpeed = UtilityClass.iceFlowerRiseSpeed; rigidbody = new AutonomousPhysicsObject(); }
public SuperMushroom(int locX, int locY) { score = new NonPlayerScoreItem(UtilityClass.itemScore, false); location = new Vector2(locX, locY); sprite = new SuperMushroomSprite(location); type = ItemType.SuperMushroom; collisionRectangle = sprite.returnCollisionRectangle(); testForCollision = true; rigidbody = new AutonomousPhysicsObject(); LoadRigidBodyProperties(); }
public Rectangle returnCollisionRectangle() { return(IceSmileySprite.returnCollisionRectangle()); }
public Rectangle returnCollisionRectangle() { return(sprite.returnCollisionRectangle()); }
public Rectangle returnCollisionRectangle() { return(SkyWorldBridgeSprite.returnCollisionRectangle()); }
public Rectangle returnCollisionRectangle() { return(rightfacingpipeSprite.returnCollisionRectangle()); }
public Rectangle returnCollisionRectangle() { return(StandingCloudSprite.returnCollisionRectangle()); }