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

            return(WithNewCurrentStrategyAndDirection(strategy, Direction.Opposite()));
        }
예제 #2
0
파일: Ghost.cs 프로젝트: punker76/PacMan
        public Ghost Scatter()
        {
            var strategy = new DirectToStrategy(new DirectToGhostScatterTarget(this));

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