Example #1
0
        internal Ghost Scatter()
        {
            var strategy = new DirectToStrategy(new DirectToGhostScatterTarget(this));

            return(WithNewCurrentStrategyAndDirection(strategy, Direction.Opposite()));
        }
Example #2
0
        public Ghost Scatter()
        {
            var strategy = new DirectToStrategy(new DirectToGhostScatterTarget(this));

            return(new Ghost(Name, Home, Location, Direction.Opposite(), ScatterTarget, Strategy, currentStrategy: strategy, Edible));
        }