public PortalDown(Game1 game, Vector2 center, Vector2 xyChange) { this.game = game; doorSprite = DoorSpriteFactory.Instance.CreatePortalSprite(game.SpriteBatch, center); roomTranslationVector = new Vector3(xyChange, -2); this.collidable = new DoorCollidable(this); }
public DownStaircaseDoor(Game1 game, Vector2 center) { this.game = game; doorSprite = DoorSpriteFactory.Instance.CreateStaircaseSprite(game.SpriteBatch, center); roomTranslationVector = new Vector3(0, 0, -1); this.collidable = new DoorCollidable(this); }
public NormalLeftDoor(Game1 game, Vector2 center, IDoor.DoorState initialDoorState) { this.game = game; this.initialDoorState = initialDoorState; doorSprite = DoorSpriteFactory.Instance.CreateLeftDoorSprite(game.SpriteBatch, center, initialDoorState); roomTranslationVector = new Vector3(-1, 0, 0); State = initialDoorState; this.collidable = new DoorCollidable(this); }