You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
355 B

4 months ago
1.查看自己魔法攻击范围内是否有敌人,有就用魔法攻击,然后结束回合
2.查看自己普通攻击范围内是否有敌人,有就攻击,结束回合
3.向所有敌人寻路,找出路径最短的敌人
4.从后往前遍历这个路径,直到当前点在移动范围内
5.向这个点移动
6.到达目的地后重复1、2