package Information.Intelligenze.Fingerprinting.ProtossStrategies

import Information.Intelligenze.Fingerprinting.Fingerprint
import Information.Intelligenze.Fingerprinting.Generic.GameTime
import Lifecycle.With
import ProxyBwapi.Races.Protoss

class FingerprintMannerPylon extends Fingerprint {
  override protected def investigate: Boolean = (
    With.frame < GameTime(5, 0)()
    && With.geography.ourMain.units.exists(u =>
      u.is(Protoss.Pylon)
      && With.geography.ourMain.harvestingArea.contains(u.tileIncludingCenter))
  )

  override val sticky = true
}
