Struct border_atari_env::atari_env::ale::Ale
source · pub struct Ale {}Implementations§
source§impl Ale
impl Ale
pub fn new(rom_path: &Path, config: AleConfig) -> Self
pub fn available_actions(&self) -> Vec<AleAction>
pub fn minimal_actions(&self) -> Vec<AleAction>
pub fn is_game_over(&self) -> bool
sourcepub fn rom_frame_number(&self) -> i32
pub fn rom_frame_number(&self) -> i32
frame number since rom loading (Ale::new)
sourcepub fn episode_frame_number(&self) -> i32
pub fn episode_frame_number(&self) -> i32
frame number of the current episode
pub fn reset(&mut self)
sourcepub fn take_action(&mut self, action: AleAction) -> i32
pub fn take_action(&mut self, action: AleAction) -> i32
returns reward
pub fn lives(&self) -> u32
pub fn available_difficulty_settings(&self) -> Vec<i32>
pub fn width(&self) -> u32
pub fn height(&self) -> u32
pub fn rgb24_size(&self) -> usize
sourcepub fn rgb24_native_endian(&self, buf: &mut [u8])
pub fn rgb24_native_endian(&self, buf: &mut [u8])
bgr on little-endian, rgb on big-endian
pub fn rgb32_size(&self) -> usize
pub fn ram_size(&self) -> usize
pub fn ram(&self, buf: &mut [u8])
pub fn save_png<P: AsRef<Path>>(&self, path: P)
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more