HasAttackActions 检查是否含有攻击防御动作
()
| 138 | |
| 139 | // HasAttackActions 检查是否含有攻击防御动作 |
| 140 | func (this *RuleSet) HasAttackActions() bool { |
| 141 | for _, action := range this.actionInstances { |
| 142 | if action.IsAttack() { |
| 143 | return true |
| 144 | } |
| 145 | } |
| 146 | return false |
| 147 | } |
| 148 | |
| 149 | func (this *RuleSet) ActionCodes() []string { |
| 150 | return this.actionCodes |
no test coverage detected