public void BeginReturning() { if (state is ThrownBoomerangState) { state = new HoveringBoomerangState(this); } }
public BoomerangProjectile(string direction, ICharacter source, int velocity = 5) : base(direction, source.X, source.Y, velocity) { OwningTeam = source.Team; sprite = ProjectileSpriteFactory.Instance.CreateBoomerang(); sprite.Position = new Point(X, Y); Hitbox = sprite.Box; this.direction = direction; this.velocity = velocity; this.source = source; state = new PocketBoomerangState(this); }