Advertisement
Vultraz

Untitled

Jan 28th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.     //find the enemy leaders and explicit targets
  2.     const unit_filter ufilt(vconfig(criteria));
  3.     for (const unit &u : resources::gameboard->units()) {
  4.         if (ufilt( u )) {
  5.             LOG_AI_GOAL << "found explicit target unit at ... " << u.get_location() << " with value: " << value() << "\n";
  6.             *target_list = target(u.get_location(), value(), target::TYPE::EXPLICIT);
  7.         }
  8.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement