Beispiel #1
0
 public WallTile(ZeldaGame game, TileSpriteFactory tileFactory, Vector2 location)
 {
     this.game         = game;
     this.position     = location;
     this.tileFactory  = tileFactory;
     this.tileSprite   = tileFactory.WallTile();
     this.spriteScalar = game.util.spriteScalar;
 }
Beispiel #2
0
 public EventTile(ZeldaGame game, TileSpriteFactory tileFactory, Vector2 location)
 {
     this.game         = game;
     this.position     = location;
     this.tileFactory  = tileFactory;
     this.tileSprite   = tileFactory.BlockTile();
     this.spriteScalar = game.util.spriteScalar;
     this.used         = false;
 }
 public PushableTile(ZeldaGame game, TileSpriteFactory tileFactory, Vector2 location)
 {
     this.game         = game;
     this.drawLocation = location;
     this.tileFactory  = tileFactory;
     this.tileSprite   = tileFactory.PushableTile();
     this.spriteScalar = game.util.spriteScalar;
     this.pushed       = false;
 }
 public GateKeeperTile(ZeldaGame game, TileSpriteFactory tileFactory, Vector2 location, Boolean locked, Boolean isLockedDoor, Boolean isPortal)
 {
     this.game         = game;
     this.position     = location;
     this.tileFactory  = tileFactory;
     this.tileSprite   = tileFactory.GatekeeperTile();
     this.spriteScalar = game.util.spriteScalar;
     this.locked       = locked;
     this.isLockedDoor = isLockedDoor;
     this.isPortal     = isPortal;
 }
 public BrickBlockState(IBlock block, bool isUnderground)
 {
     this.block = block;
     if (isUnderground)
     {
         block.Sprite = TileSpriteFactory.CreateUndergroundBrickBlockSprite();
     }
     else
     {
         block.Sprite = TileSpriteFactory.CreateBrickBlockSprite();
     }
 }
 public VerticalBlockWallState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateVerticalBlockWallSprite();
 }
 public NullBlockState(IBlock block)
 {
     block.Sprite = TileSpriteFactory.CreateHiddenBlockSprite();
 }
Beispiel #8
0
 public QuestionBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateQuestionBlockSprite();
 }
 public HorizontalBlockWallState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateHorizontalBlockWallSprite();
 }
Beispiel #10
0
 public BrickDebrisState(IBlock block)
 {
     this.block = block;
     SoundEffectManager.BreakingBlockSoundEffect();
     block.Sprite = TileSpriteFactory.CreateBrickDebrisSprite();
 }
Beispiel #11
0
 public UsedBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateUsedBlockSprite();
 }
 public HiddenBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateHiddenBlockSprite();
 }