Method | Description | |
---|---|---|
BestShootableCreep ( List |
Not yet the best shootable creep, right now just any creep returns true if there's a valid creep, creep is the target
|
|
GetDistance ( Vector2 pos1, Vector2 pos2 ) : double |
Get the distance between two points.
|
|
MovementTowardsPoint ( Vector2 start, Vector2 end, int speed, bool &Connected ) : Vector2 |
Gives the movement vector for an object to move towards the given point.
|
|
ToDegrees ( float radians ) : float | ||
ToRadians ( float degrees ) : float |
public static BestShootableCreep ( List |
||
targets | List |
|
towerPosition | Vector2 | |
range | int | |
creep | Creep | |
return | bool |
public static GetDistance ( Vector2 pos1, Vector2 pos2 ) : double | ||
pos1 | Vector2 | The first point. |
pos2 | Vector2 | The second point. |
return | double |
public static MovementTowardsPoint ( Vector2 start, Vector2 end, int speed, bool &Connected ) : Vector2 | ||
start | Vector2 | The position to move from. |
end | Vector2 | The position to move to. |
speed | int | The vector's magnitude. |
Connected | bool | True if the vector |
return | Vector2 |
public static ToDegrees ( float radians ) : float | ||
radians | float | |
return | float |
public static ToRadians ( float degrees ) : float | ||
degrees | float | |
return | float |