/// <summary> /// Creates a new set of money. /// </summary> /// <param name="state">The fishing state to track.</param> public Money(FishingState state) { _amount = 0; state.Event += OnFishingEvent; }
/// <summary> /// Creates a new fish. /// </summary> public Fish(FishDescription description, FishMovement movement, FishBehavior behavior, FishingState fishing) { _description = description; _movement = movement; _behavior = behavior; _fishing = fishing; _position = new Vector2(700f, _movement.Range.Y); _velocity = _targetVelocity = new Vector2(_movement.Speed, 0f); }
/// <summary> /// Creates a new ocean. /// </summary> /// <param name="fishing">The fishing state.</param> public Ocean(FishingState fishing) { _fishing = fishing; _fishing.Event += OnFishingEvent; }