Struct border_atari_env::atari_env::AtariEnv
source · pub struct AtariEnv { /* private fields */ }Implementations§
source§impl AtariEnv
impl AtariEnv
sourcepub fn new<P: AsRef<Path>>(rom_path: P, emulator_config: EmulatorConfig) -> Self
pub fn new<P: AsRef<Path>>(rom_path: P, emulator_config: EmulatorConfig) -> Self
about frame-skipping and action-repeat, see https://danieltakeshi.github.io/2016/11/25/frame-skipping-and-preprocessing-for-deep-q-networks-on-atari-2600-games/
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn available_actions(&self) -> Vec<AtariAction>
pub fn minimal_actions(&self) -> Vec<AtariAction>
pub fn available_difficulty_settings(&self) -> Vec<i32>
pub fn lives(&self) -> usize
pub fn is_game_over(&self) -> bool
pub fn reset(&mut self)
pub fn step(&mut self, action: AtariAction) -> i32
pub fn rgb32_size(&self) -> usize
pub fn rgb24_size(&self) -> usize
pub fn ram_size(&self) -> usize
pub fn render_rgb32(&self, buf: &mut [u8])
pub fn render_rgb24(&self, buf: &mut [u8])
pub fn render_ram(&self, buf: &mut [u8])
pub fn into_ram_env(self) -> AtariRamEnv
pub fn into_rgb_env(self) -> AtariRgbEnv
pub fn seed(&self, seed: i32)
Auto Trait Implementations§
impl RefUnwindSafe for AtariEnv
impl Send for AtariEnv
impl Sync for AtariEnv
impl Unpin for AtariEnv
impl UnwindSafe for AtariEnv
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