Exemple #1
0
        private void Action(IPassenger passenger)
        {
            if (game.Boat.BoatPlace)
            {
                game.ActionRemoveFromArea(game.RightCoast, passenger);
                game.ActionAddToArea(game.LeftCoast, passenger);
            }
            else
            {
                game.ActionRemoveFromArea(game.LeftCoast, passenger);
                game.ActionAddToArea(game.RightCoast, passenger);
            }

            game.Boat.BoatPlace = !game.Boat.BoatPlace;

            CheckAction();
        }