예제 #1
0
        private MovieBuff Create()
        {
            MovieBuff movieBuff = new MovieBuff();

            movieBuff.BuildAi(Code);
            return(movieBuff);
        }
예제 #2
0
        public void CanCompile()
        {
            MovieBuff movieBuff = Create();

            movieBuff.Should().NotBeNull();
            movieBuff.Ai.Should().NotBeNull();
            Console.WriteLine(movieBuff.Ai.ToString());
        }
예제 #3
0
        public void CanRun()
        {
            MovieBuff movieBuff = Create();

            for (int i = 0; i < 100; i++)
            {
                movieBuff.Tick();
                if (movieBuff.Ai.Context.RunningTask != null)
                {
                    Console.WriteLine(movieBuff.Ai.Context.RunningTask.DebugText);
                }

                if (movieBuff.Location == Location.Exit)
                {
                    break;
                }
            }
        }
예제 #4
0
 private MovieBuff Create()
 {
     MovieBuff movieBuff = new MovieBuff();
     movieBuff.BuildAi(Code);
     return movieBuff;
 }
예제 #5
0
 public MovieBuffBlackboard(MovieBuff movieBuff)
     : base(null)
 {
     MovieBuff = movieBuff;
     Owner     = this;
 }