package Planning.UnitMatchers

import ProxyBwapi.UnitInfo.UnitInfo

object UnitMatchWarriors extends UnitMatcher {
  
  override def accept(unit: UnitInfo): Boolean = (
    unit.aliveAndComplete
    && unit.unitClass.dealsDamage
    && unit.unitClass.orderable
    && (unit.unitClass.canMove || unit.unitClass.isSiegeTank)
    && ! unit.unitClass.isWorker
  )
}
