Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 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();
 }
Ejemplo n.º 8
0
 public QuestionBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateQuestionBlockSprite();
 }
 public HorizontalBlockWallState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateHorizontalBlockWallSprite();
 }
Ejemplo n.º 10
0
 public BrickDebrisState(IBlock block)
 {
     this.block = block;
     SoundEffectManager.BreakingBlockSoundEffect();
     block.Sprite = TileSpriteFactory.CreateBrickDebrisSprite();
 }
Ejemplo n.º 11
0
 public UsedBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateUsedBlockSprite();
 }
 public HiddenBlockState(IBlock block)
 {
     this.block   = block;
     block.Sprite = TileSpriteFactory.CreateHiddenBlockSprite();
 }