コード例 #1
0
 public Rectangle returnCollisionRectangle()
 {
     if (testForCollision)
     {
         collisionRectangle = sprite.returnCollisionRectangle();
     }
     return(collisionRectangle);
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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();
 }
コード例 #4
0
 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();
 }
コード例 #5
0
 public Rectangle returnCollisionRectangle()
 {
     return(IceSmileySprite.returnCollisionRectangle());
 }
コード例 #6
0
 public Rectangle returnCollisionRectangle()
 {
     return(sprite.returnCollisionRectangle());
 }
コード例 #7
0
 public Rectangle returnCollisionRectangle()
 {
     return(SkyWorldBridgeSprite.returnCollisionRectangle());
 }
コード例 #8
0
 public Rectangle returnCollisionRectangle()
 {
     return(rightfacingpipeSprite.returnCollisionRectangle());
 }
コード例 #9
0
 public Rectangle returnCollisionRectangle()
 {
     return(StandingCloudSprite.returnCollisionRectangle());
 }