mirror of
https://github.com/Ragora/T2-DXAI.git
synced 2026-03-04 04:50:21 +00:00
CyclicSet; commander task distribution; fixed AIScoutLocation
This commit is contained in:
parent
088d7fee8e
commit
92007e9bc7
7 changed files with 218 additions and 37 deletions
|
|
@ -13,6 +13,14 @@ function sameSide(%p1, %p2, %a, %b)
|
|||
return false;
|
||||
}
|
||||
|
||||
function SimSet::contains(%this, %contained)
|
||||
{
|
||||
for (%iteration = 0; %iteration < %this.getCount(); %iteration++)
|
||||
if (%this.getObject(%iteration) == %contained)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
function pointInTriangle(%point, %a, %b, %c)
|
||||
{
|
||||
if (sameSide(%point, %a, %b, %c) && sameSide(%point, %b, %a, %c) && sameSide(%point, %c, %a, %b))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue