C# Class Dischord.ai

Afficher le fichier Open project: jbrownbridge/Dischord

Méthodes publiques

Méthode 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 méthode

public static can_see ( Map map, Point pos, int facing, Point target ) : bool
map Map
pos Point
facing int
target Point
Résultat bool

findPath() public static méthode

public static findPath ( Map map, Vector2 pos, Enemy c ) : Direction
map Map
pos Vector2
c Enemy
Résultat Direction

findPath() public static méthode

public static findPath ( Map map, Vector2 pos, Vector2 target ) : Direction
map Map
pos Vector2
target Vector2
Résultat Direction

getTarget() public static méthode

public static getTarget ( Map map, Vector2 pos, int facing ) : Vector2
map Map
pos Vector2
facing int
Résultat Vector2

intersection() public static méthode

public static intersection ( Point p1, Point p2, Point p3, Point p4 ) : bool
p1 Point
p2 Point
p3 Point
p4 Point
Résultat bool

intersection() public static méthode

public static intersection ( Point lineA, Point lineB, Point squareA, int squreSize ) : bool
lineA Point
lineB Point
squareA Point
squreSize int
Résultat bool