@Namespace(value="ale") @NoOffset @Properties(inherit=ale.class) public class ALEInterface extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ALEInterface() |
ALEInterface(boolean display_screen) |
ALEInterface(long size)
Native array allocator.
|
ALEInterface(Pointer p)
Pointer cast constructor.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ALEInterface(Pointer p)
Pointer(Pointer)
.public ALEInterface(long size)
Pointer.position(long)
.public ALEInterface()
public ALEInterface position(long position)
public ALEInterface getPointer(long i)
getPointer
in class Pointer
@StdString public BytePointer getString(@StdString BytePointer key)
@StdString public String getString(@StdString String key)
public int getInt(@StdString BytePointer key)
public int getInt(@StdString String key)
@Cast(value="bool") public boolean getBool(@StdString BytePointer key)
@Cast(value="bool") public boolean getBool(@StdString String key)
public float getFloat(@StdString BytePointer key)
public float getFloat(@StdString String key)
@StdString public BytePointer getStringInplace(@StdString BytePointer key)
@StdString public String getStringInplace(@StdString String key)
public void setString(@StdString BytePointer key, @StdString BytePointer value)
public void setString(@StdString String key, @StdString String value)
public void setInt(@StdString BytePointer key, int value)
public void setInt(@StdString String key, int value)
public void setBool(@StdString BytePointer key, @Cast(value="const bool") boolean value)
public void setBool(@StdString String key, @Cast(value="const bool") boolean value)
public void setFloat(@StdString BytePointer key, float value)
public void setFloat(@StdString String key, float value)
public void loadROM(@Cast(value="const char*") BytePointer rom_file)
public void loadROM()
public void loadROM(String rom_file)
public void reset_game()
@Cast(value="ale::game_mode_t*") @StdVector public IntPointer getAvailableModes()
@Cast(value="ale::difficulty_t*") @StdVector public IntPointer getAvailableDifficulties()
@Cast(value="ale::Action*") @StdVector public IntPointer getLegalActionSet()
@Cast(value="ale::Action*") @StdVector public IntPointer getMinimalActionSet()
public int getFrameNumber()
public int lives()
public int getEpisodeFrameNumber()
public void getScreenGrayscale(@Cast(value="unsigned char*") @StdVector BytePointer grayscale_output_buffer)
public void getScreenGrayscale(@Cast(value="unsigned char*") @StdVector ByteBuffer grayscale_output_buffer)
public void getScreenGrayscale(@Cast(value="unsigned char*") @StdVector byte[] grayscale_output_buffer)
public void getScreenRGB(@Cast(value="unsigned char*") @StdVector BytePointer output_rgb_buffer)
public void getScreenRGB(@Cast(value="unsigned char*") @StdVector ByteBuffer output_rgb_buffer)
public void getScreenRGB(@Cast(value="unsigned char*") @StdVector byte[] output_rgb_buffer)
public void setRAM(@Cast(value="size_t") long memory_index, @Cast(value="ale::byte_t") byte value)
public void saveScreenPNG(@StdString BytePointer filename)
public void saveScreenPNG(@StdString String filename)
public ScreenExporter createScreenExporter(@StdString BytePointer path)
public ScreenExporter createScreenExporter(@StdString String path)
@Name(value="romSettings.get") public RomSettings romSettings()
@Name(value="environment.get") public StellaEnvironment environment()
public int max_num_frames()
public ALEInterface max_num_frames(int setter)
@ByVal public static StringOptional isSupportedROM(@Cast(value="const char*") BytePointer rom_file)
@ByVal public static StringOptional isSupportedROM(String rom_file)
@StdString public static BytePointer welcomeMessage()
public static void createOSystem(@UniquePtr OSystem theOSystem, @UniquePtr Settings theSettings)
public static void loadSettings(@Cast(value="const char*") BytePointer romfile, @UniquePtr OSystem theOSystem)
public static void loadSettings(String romfile, @UniquePtr OSystem theOSystem)
Copyright © 2022. All rights reserved.