public Bowser(IFactory spriteFactory, Point initialPositionInGame, Vector2 initialSpeedInGame) : base(spriteFactory, initialPositionInGame, initialSpeedInGame) { this.bowserState = new BowserIdleState(this); this.prevStateShell = true; this.fireball = new BowserFireball(true, -100, 0); this.burst = 1; this.transitionTimer = 0; this.health = 31; this.IsFacingLeft = true; this.hitboxOffset = -1; this.hitboxColor = Color.Red; this.HitboxType = HitboxTypes.Full; this.gravity = new Gravity(this); this.IsCollidable = true; }
public void ChangeState(BowserState state) { this.bowserState = state; }