public SkyWorldBridgeSprite(Vector2 location)
 {
     SkyWorldBridgeSpriteSheet = MiscGameObjectTextureStorage.CreateBridgeSprite();
     this.location = location;
     BridgeSprite = new AnimatedSprite(SkyWorldBridgeSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle = BridgeSprite.returnCollisionRectangle();
 }
Beispiel #2
0
 public SmallVineSprite(Vector2 location)
 {
     smallvineSpriteSheet = MiscGameObjectTextureStorage.CreateSmallVineSprite();
     this.location        = location;
     smallvineSprite      = new AnimatedSprite(smallvineSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle   = smallvineSprite.returnCollisionRectangle();
 }
Beispiel #3
0
 public RightFacingPipeEdgeSprite(Vector2 location)
 {
     pipeSpriteSheet    = MiscGameObjectTextureStorage.CreateRightFacingPipeEdgeSprite();
     this.location      = location;
     pipeSprite         = new AnimatedSprite(pipeSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle = pipeSprite.returnCollisionRectangle();
 }
 public StandingCloudSprite(Vector2 location)
 {
     CloudSpriteSheet   = MiscGameObjectTextureStorage.CreateStandingCloudSprite();
     this.location      = location;
     cloudSprite        = new AnimatedSprite(CloudSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle = cloudSprite.returnCollisionRectangle();
 }
Beispiel #5
0
 public GUIMarioSprite(Vector2 location)
 {
     guiMarioSpriteSheet = GUISpriteFactory.CreateGUIMarioSprite();
     this.location       = location;
     guiMarioSprite      = new AnimatedSprite(guiMarioSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.two);
     collisionRectangle  = guiMarioSprite.returnCollisionRectangle();
 }
 public GUICoinSprite(Vector2 location)
 {
     coinSpriteSheet    = GUISpriteFactory.CreateGUICoinSprite();
     this.location      = location;
     coinSprite         = new AnimatedSprite(coinSpriteSheet, UtilityClass.one, UtilityClass.generalTotalFramesAndSpecializedRows, location, UtilityClass.two);
     collisionRectangle = coinSprite.returnCollisionRectangle();
 }
Beispiel #7
0
 public LargeVineSprite(Vector2 location)
 {
     LargevineSpriteSheet = MiscGameObjectTextureStorage.CreateLargeVineSprite();
     this.location        = location;
     LargevineSprite      = new AnimatedSprite(LargevineSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle   = LargevineSprite.returnCollisionRectangle();
 }
Beispiel #8
0
 public BoxCoinSprite(Vector2 location)
 {
     boxCoinSpriteSheet = ItemSpriteTextureStorage.CreateBoxCoinSprite();
     this.location      = location;
     boxCoinSprite      = new AnimatedSprite(boxCoinSpriteSheet, UtilityClass.one, UtilityClass.generalTotalFramesAndSpecializedRows, location, UtilityClass.specializedSpriteTotalFramesAndMarioRunningCols);
     collisionRectangle = boxCoinSprite.returnCollisionRectangle();
 }
 public IceSmileyCloudSprite(Vector2 location)
 {
     IceSmileyCloudSpriteSheet = MiscGameObjectTextureStorage.CreateIceCloudSprite();
     this.location             = location;
     AnimIceSmileyCloud        = new AnimatedSprite(IceSmileyCloudSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle        = AnimIceSmileyCloud.returnCollisionRectangle();
 }
 public MediumVineSprite(Vector2 location)
 {
     MediumvineSpriteSheet = MiscGameObjectTextureStorage.CreateMediumVineSprite();
     this.location         = location;
     MediumvineSprite      = new AnimatedSprite(MediumvineSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle    = MediumvineSprite.returnCollisionRectangle();
 }
 public GoombaEnemySpawnerSprite(Vector2 location)
 {
     goombaEnemySpawnerSpriteSheet = MiscGameObjectTextureStorage.createGoombaEnemySpawnerSprite();
     this.location         = location;
     spawnerAnimatedSprite = new AnimatedSprite(goombaEnemySpawnerSpriteSheet, UtilityClass.one, UtilityClass.one, location, UtilityClass.one);
     collisionRectangle    = spawnerAnimatedSprite.returnCollisionRectangle();
 }
 public FireFlowerSprite(Vector2 location)
 {
     fireFlowerSpriteSheet = ItemSpriteTextureStorage.CreateFireFlowerSprite();
     this.location         = location;
     fireFlowerSprite      = new AnimatedSprite(fireFlowerSpriteSheet, UtilityClass.one, UtilityClass.generalTotalFramesAndSpecializedRows, location, UtilityClass.two);
     collisionRectangle    = fireFlowerSprite.returnCollisionRectangle();
 }
        public Rectangle returnStateCollisionRectangle()
        {
            Rectangle collisionRectangle;

            if (mario.Small)
            {
                collisionRectangle = small.returnCollisionRectangle();
            }
            else if (mario.Fire)
            {
                collisionRectangle = fire.returnCollisionRectangle();
            }
            else if (mario.Ice)
            {
                collisionRectangle = ice.returnCollisionRectangle();
            }
            else
            {
                collisionRectangle = big.returnCollisionRectangle();
            }

            return(collisionRectangle);
        }
 public Rectangle returnCollisionRectangle()
 {
     return(sprite.returnCollisionRectangle());
 }
Beispiel #15
0
 public Rectangle returnCollisionRectangle()
 {
     return(AnimatedKoopa.returnCollisionRectangle());
 }
 public Rectangle returnCollisionRectangle()
 {
     return(superStarSprite.returnCollisionRectangle());
 }
 public Rectangle returnCollisionRectangle()
 {
     return(AnimatedGoomba.returnCollisionRectangle());
 }