Property | Type | Description | |
---|---|---|---|
aggro | bool | ||
heading | double | ||
playerLoc | Coord | ||
scanArc | double | ||
scanRange | int | ||
scanTime | double | ||
scanTimer | double | ||
speed | double | ||
turnSpeed | double | ||
visionRange | int |
Method | Description | |
---|---|---|
Enemy ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, |
||
GetPath ( Coord startPos, Coord endPos, |
||
IsPointInPolygon ( List |
||
Move ( double elapsedTime, Coord end ) : bool | ||
Rotate ( double deg ) : void | ||
RotateTo ( double deg ) : void | ||
Search ( |
||
UpdateAI ( |
||
checkAdjacent ( |
public Enemy ( Microsoft.Xna.Framework.Content.ContentManager content, double x, double y, string t, |
||
content | Microsoft.Xna.Framework.Content.ContentManager | |
x | double | |
y | double | |
t | string | |
r | ||
direction | float | |
return | Microsoft.Xna.Framework |
public GetPath ( Coord startPos, Coord endPos, |
||
startPos | Coord | |
endPos | Coord | |
m | ||
return | List |
public IsPointInPolygon ( List |
||
triangle | List |
|
player | Coord | |
return | bool |
public Move ( double elapsedTime, Coord end ) : bool | ||
elapsedTime | double | |
end | Coord | |
return | bool |
public Search ( |
||
curNode | ||
startPos | Coord | |
endPos | Coord | |
nodeMap | ||
return | bool |
public UpdateAI ( |
||
m | ||
elapsedTime | double | |
player | Coord | |
return | bool |
public checkAdjacent ( |
||
curNode | ||
end | Coord | |
nodeMap | ||
return | List |