Esempio n. 1
0
        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];
        }
Esempio n. 2
0
 public void AddTaskStatus(Bevelle.GameMono.Ai.Behavior.TaskState taskState)
 {
     _latestTaskDebugInfo.AddTaskStatus(taskState);
 }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
 public void AddTaskStatus(Bevelle.GameMono.Ai.Behavior.TaskState taskState)
 {
     TaskStateHistory.Add(taskState);
 }
Esempio n. 5
0
 public void ChangeDwarfTask(Dwarf d, Bevelle.GameMono.Ai.Tasks.Task t)
 {
     _mutex.WaitOne();
     _dwarfs[d].AddTask(t);
     _mutex.ReleaseMutex();
 }