go_dreamfactory/modules/game/fight/logic/FightAI.go

32 lines
584 B
Go

package logic
/// <summary>
/// 构造函数
/// </summary>
/// <param name="fightBase">FightBase实例</param>
func newFightAI(fightBase FightBase) *FightAI {
return &FightAI{
FightBase: &fightBase,
}
}
type FightAI struct {
FightBase *FightBase
}
/// <summary>
/// 自动触发技能
/// </summary>
/// <param name="fightRole"></param>
func (this *FightAI) AutoEmitSkill(fightRole *FightRole) {
//todo...根据规则,设置对应技能和目标
this.FightBase.EmitSkill(100012000, "bb")
}
/// <summary>
/// 清理机制
/// </summary>
func (this *FightAI) Clear() {
}