[][src]Struct gdnative::AStar2D

pub struct AStar2D { /* fields omitted */ }

core class AStar2D inherits Reference (reference counted).

Official documentation

See the documentation of this class in the Godot engine's official documentation.

Memory management

The lifetime of this object is automatically managed through reference counting.

Class hierarchy

AStar2D inherits methods from:

Methods

impl AStar2D[src]

pub fn new() -> AStar2D[src]

pub fn new_ref(&self) -> AStar2D[src]

Creates a new reference to the same reference-counted object.

pub fn add_point(
    &mut self,
    id: i64,
    position: Vector2D<f32, UnknownUnit>,
    weight_scale: f64
)
[src]

pub fn are_points_connected(&self, id: i64, to_id: i64) -> bool[src]

pub fn clear(&mut self)[src]

pub fn connect_points(&mut self, id: i64, to_id: i64, bidirectional: bool)[src]

pub fn disconnect_points(&mut self, id: i64, to_id: i64)[src]

pub fn get_available_point_id(&self) -> i64[src]

pub fn get_closest_point(
    &self,
    to_position: Vector2D<f32, UnknownUnit>,
    include_disabled: bool
) -> i64
[src]

pub fn get_closest_position_in_segment(
    &self,
    to_position: Vector2D<f32, UnknownUnit>
) -> Vector2D<f32, UnknownUnit>
[src]

pub fn get_id_path(&mut self, from_id: i64, to_id: i64) -> Int32Array[src]

pub fn get_point_capacity(&self) -> i64[src]

pub fn get_point_connections(&mut self, id: i64) -> Int32Array[src]

pub fn get_point_count(&self) -> i64[src]

pub fn get_point_path(&mut self, from_id: i64, to_id: i64) -> Vector2Array[src]

pub fn get_point_position(&self, id: i64) -> Vector2D<f32, UnknownUnit>[src]

pub fn get_point_weight_scale(&self, id: i64) -> f64[src]

pub fn get_points(&mut self) -> VariantArray[src]

pub fn has_point(&self, id: i64) -> bool[src]

pub fn is_point_disabled(&self, id: i64) -> bool[src]

pub fn remove_point(&mut self, id: i64)[src]

pub fn reserve_space(&mut self, num_nodes: i64)[src]

pub fn set_point_disabled(&mut self, id: i64, disabled: bool)[src]

pub fn set_point_position(
    &mut self,
    id: i64,
    position: Vector2D<f32, UnknownUnit>
)
[src]

pub fn set_point_weight_scale(&mut self, id: i64, weight_scale: f64)[src]

pub fn init_ref(&mut self) -> bool[src]

Inherited from Reference.

pub fn to_reference(&self) -> Reference[src]

Up-cast.

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Methods from Deref<Target = Reference>

pub fn new_ref(&self) -> Reference[src]

Creates a new reference to the same reference-counted object.

pub fn init_ref(&mut self) -> bool[src]

pub fn to_object(&self) -> Object[src]

Up-cast.

pub fn cast<T>(&self) -> Option<T> where
    T: GodotObject
[src]

Generic dynamic cast.

Trait Implementations

impl Clone for AStar2D[src]

impl Debug for AStar2D[src]

impl Deref for AStar2D[src]

type Target = Reference

The resulting type after dereferencing.

impl DerefMut for AStar2D[src]

impl Drop for AStar2D[src]

impl FromVariant for AStar2D[src]

impl GodotObject for AStar2D[src]

impl Instanciable for AStar2D[src]

impl ToVariant for AStar2D[src]

Auto Trait Implementations

impl RefUnwindSafe for AStar2D

impl !Send for AStar2D

impl !Sync for AStar2D

impl Unpin for AStar2D

impl UnwindSafe for AStar2D

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Export for T where
    T: GodotObject + ToVariant
[src]

type Hint = ()

A type-specific hint type that is valid for the type being exported.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.