[][src]Struct rlbot::RLBot

pub struct RLBot { /* fields omitted */ }

The low-level interface to RLBot. All RLBot calls that are available can be made through this struct.

Methods

impl RLBot[src]

pub fn interface(&self) -> &RLBotInterface[src]

Gives direct access to the FFI methods in RLBotInterface.dll.

pub fn packeteer(&self) -> Packeteer[src]

Returns a Packeteer object, for conveniently accessing game state as it occurs.

pub fn physicist(&self) -> Physicist[src]

Returns a Physicist object, for conveniently accessing physics ticks as they occur.

pub fn update_player_input(
    &self,
    player_index: i32,
    controller_state: &ControllerState
) -> Result<(), RLBotError>
[src]

Sends player input to RLBot.

pub fn set_game_state(
    &self,
    desired_game_state: &DesiredGameState
) -> Result<(), RLBotError>
[src]

Sets the game state.

pub fn start_match(
    &self,
    match_settings: &MatchSettings
) -> Result<(), Box<dyn Error>>
[src]

Tells RLBot to start a match.

pub fn wait_for_match_start(&self) -> Result<(), Box<dyn Error>>[src]

Spin-waits until a match is active.

Call start_match before calling this method.

pub fn begin_render_group(&self, id: i32) -> RenderGroup[src]

Begin drawing to the screen.

The ID identifies a group. Multiple groups can exist and be updated independently. Drawings will remain on screen until they are replaced by a group with the same ID.

A group can be cleared from the screen by rendering an empty group.

See RenderGroup for more info.

Auto Trait Implementations

impl Send for RLBot

impl !Sync for RLBot

Blanket Implementations

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

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>,