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 Freeze for AtariEnv
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more