public void AddTask(Bevelle.GameMono.Ai.Tasks.Task task) { if (TaskHistory.Count > 500) { TaskHistory.RemoveAt(0); TaskDebugInfoHistory.RemoveAt(0); } TaskHistory.Add(task); TaskDebugInfoHistory.Add(new TaskDebugInfo()); _latestTask = task; _latestTaskDebugInfo = TaskDebugInfoHistory[TaskDebugInfoHistory.Count - 1]; }
public void AddTaskStatus(Bevelle.GameMono.Ai.Behavior.TaskState taskState) { _latestTaskDebugInfo.AddTaskStatus(taskState); }
public void ChangeDwarfTaskStatus(Dwarf d, Bevelle.GameMono.Ai.Tasks.Task t, Bevelle.GameMono.Ai.Behavior.TaskState taskState) { _mutex.WaitOne(); _dwarfs[d].AddTaskStatus(taskState); _mutex.ReleaseMutex(); }
public void AddTaskStatus(Bevelle.GameMono.Ai.Behavior.TaskState taskState) { TaskStateHistory.Add(taskState); }
public void ChangeDwarfTask(Dwarf d, Bevelle.GameMono.Ai.Tasks.Task t) { _mutex.WaitOne(); _dwarfs[d].AddTask(t); _mutex.ReleaseMutex(); }