AStarGrid2D
Inherits: RefCounted < Object
There is currently no description for this class. Please help us by contributing one!
Properties
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
_compute_cost ( Vector2i from_id, Vector2i to_id ) virtual const |
|
_estimate_cost ( Vector2i from_id, Vector2i to_id ) virtual const |
|
void |
clear ( ) |
void |
fill_solid_region ( Rect2i region, bool solid=true ) |
void |
fill_weight_scale_region ( Rect2i region, float weight_scale ) |
get_id_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false ) |
|
get_point_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false ) |
|
get_point_position ( Vector2i id ) const |
|
get_point_weight_scale ( Vector2i id ) const |
|
is_dirty ( ) const |
|
is_in_bounds ( int x, int y ) const |
|
is_in_boundsv ( Vector2i id ) const |
|
is_point_solid ( Vector2i id ) const |
|
void |
set_point_solid ( Vector2i id, bool solid=true ) |
void |
set_point_weight_scale ( Vector2i id, float weight_scale ) |
void |
update ( ) |
Enumerations
enum Heuristic:
Heuristic HEURISTIC_EUCLIDEAN = 0
There is currently no description for this enum. Please help us by contributing one!
Heuristic HEURISTIC_MANHATTAN = 1
There is currently no description for this enum. Please help us by contributing one!
Heuristic HEURISTIC_OCTILE = 2
There is currently no description for this enum. Please help us by contributing one!
Heuristic HEURISTIC_CHEBYSHEV = 3
There is currently no description for this enum. Please help us by contributing one!
Heuristic HEURISTIC_MAX = 4
There is currently no description for this enum. Please help us by contributing one!
enum DiagonalMode:
DiagonalMode DIAGONAL_MODE_ALWAYS = 0
There is currently no description for this enum. Please help us by contributing one!
DiagonalMode DIAGONAL_MODE_NEVER = 1
There is currently no description for this enum. Please help us by contributing one!
DiagonalMode DIAGONAL_MODE_AT_LEAST_ONE_WALKABLE = 2
There is currently no description for this enum. Please help us by contributing one!
DiagonalMode DIAGONAL_MODE_ONLY_IF_NO_OBSTACLES = 3
There is currently no description for this enum. Please help us by contributing one!
DiagonalMode DIAGONAL_MODE_MAX = 4
There is currently no description for this enum. Please help us by contributing one!
enum CellShape:
CellShape CELL_SHAPE_SQUARE = 0
There is currently no description for this enum. Please help us by contributing one!
CellShape CELL_SHAPE_ISOMETRIC_RIGHT = 1
There is currently no description for this enum. Please help us by contributing one!
CellShape CELL_SHAPE_ISOMETRIC_DOWN = 2
There is currently no description for this enum. Please help us by contributing one!
CellShape CELL_SHAPE_MAX = 3
There is currently no description for this enum. Please help us by contributing one!
Property Descriptions
CellShape cell_shape = 0
There is currently no description for this property. Please help us by contributing one!
Vector2 cell_size = Vector2(1, 1)
There is currently no description for this property. Please help us by contributing one!
Heuristic default_compute_heuristic = 0
There is currently no description for this property. Please help us by contributing one!
Heuristic default_estimate_heuristic = 0
void set_default_estimate_heuristic ( Heuristic value )
Heuristic get_default_estimate_heuristic ( )
There is currently no description for this property. Please help us by contributing one!
DiagonalMode diagonal_mode = 0
void set_diagonal_mode ( DiagonalMode value )
DiagonalMode get_diagonal_mode ( )
There is currently no description for this property. Please help us by contributing one!
bool jumping_enabled = false
There is currently no description for this property. Please help us by contributing one!
Vector2 offset = Vector2(0, 0)
There is currently no description for this property. Please help us by contributing one!
Rect2i region = Rect2i(0, 0, 0, 0)
There is currently no description for this property. Please help us by contributing one!
Vector2i size = Vector2i(0, 0)
There is currently no description for this property. Please help us by contributing one!
Method Descriptions
float _compute_cost ( Vector2i from_id, Vector2i to_id ) virtual const
There is currently no description for this method. Please help us by contributing one!
float _estimate_cost ( Vector2i from_id, Vector2i to_id ) virtual const
There is currently no description for this method. Please help us by contributing one!
void clear ( )
There is currently no description for this method. Please help us by contributing one!
void fill_solid_region ( Rect2i region, bool solid=true )
There is currently no description for this method. Please help us by contributing one!
void fill_weight_scale_region ( Rect2i region, float weight_scale )
There is currently no description for this method. Please help us by contributing one!
Vector2i[] get_id_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )
There is currently no description for this method. Please help us by contributing one!
PackedVector2Array get_point_path ( Vector2i from_id, Vector2i to_id, bool allow_partial_path=false )
There is currently no description for this method. Please help us by contributing one!
Vector2 get_point_position ( Vector2i id ) const
There is currently no description for this method. Please help us by contributing one!
float get_point_weight_scale ( Vector2i id ) const
There is currently no description for this method. Please help us by contributing one!
bool is_dirty ( ) const
There is currently no description for this method. Please help us by contributing one!
bool is_in_bounds ( int x, int y ) const
There is currently no description for this method. Please help us by contributing one!
bool is_in_boundsv ( Vector2i id ) const
There is currently no description for this method. Please help us by contributing one!
bool is_point_solid ( Vector2i id ) const
There is currently no description for this method. Please help us by contributing one!
void set_point_solid ( Vector2i id, bool solid=true )
There is currently no description for this method. Please help us by contributing one!
void set_point_weight_scale ( Vector2i id, float weight_scale )
There is currently no description for this method. Please help us by contributing one!
void update ( )
There is currently no description for this method. Please help us by contributing one!