private MovieBuff Create() { MovieBuff movieBuff = new MovieBuff(); movieBuff.BuildAi(Code); return(movieBuff); }
public void CanCompile() { MovieBuff movieBuff = Create(); movieBuff.Should().NotBeNull(); movieBuff.Ai.Should().NotBeNull(); Console.WriteLine(movieBuff.Ai.ToString()); }
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; } } }
private MovieBuff Create() { MovieBuff movieBuff = new MovieBuff(); movieBuff.BuildAi(Code); return movieBuff; }
public MovieBuffBlackboard(MovieBuff movieBuff) : base(null) { MovieBuff = movieBuff; Owner = this; }