public override void Activate() { State = Statusgoal.active; SubGoals.Clear(); SubGoals.Add(new PathFollowingGoal(smartEntity, Target)); SubGoals.Add(new DrinkGoal(smartEntity, Target)); }
public override void Activate() { //Target = new Target(new Vector2(Robot.MyWorld.Random.Next(20, 1260), Robot.MyWorld.Random.Next(20, 940)), Robot.MyWorld); State = Statusgoal.active; SubGoals.Clear(); SubGoals.Add(new PathFollowingGoal(smartEntity, Target)); SubGoals.Add(new EatGoal(smartEntity, Target)); }
public virtual void AddSubGoal(Goal goal) { SubGoals.Add(goal); }