C# Class Dischord.ai

Show file Open project: jbrownbridge/Dischord

Public Methods

Method Description
can_see ( Map map, Point pos, int facing, Point target ) : bool
findPath ( Map map, Vector2 pos, Enemy c ) : Direction
findPath ( Map map, Vector2 pos, Vector2 target ) : Direction
getTarget ( Map map, Vector2 pos, int facing ) : Vector2
intersection ( Point p1, Point p2, Point p3, Point p4 ) : bool
intersection ( Point lineA, Point lineB, Point squareA, int squreSize ) : bool

Method Details

can_see() public static method

public static can_see ( Map map, Point pos, int facing, Point target ) : bool
map Map
pos Point
facing int
target Point
return bool

findPath() public static method

public static findPath ( Map map, Vector2 pos, Enemy c ) : Direction
map Map
pos Vector2
c Enemy
return Direction

findPath() public static method

public static findPath ( Map map, Vector2 pos, Vector2 target ) : Direction
map Map
pos Vector2
target Vector2
return Direction

getTarget() public static method

public static getTarget ( Map map, Vector2 pos, int facing ) : Vector2
map Map
pos Vector2
facing int
return Vector2

intersection() public static method

public static intersection ( Point p1, Point p2, Point p3, Point p4 ) : bool
p1 Point
p2 Point
p3 Point
p4 Point
return bool

intersection() public static method

public static intersection ( Point lineA, Point lineB, Point squareA, int squreSize ) : bool
lineA Point
lineB Point
squareA Point
squreSize int
return bool