@NoOffset @Properties(inherit=ale.class) public class StellaEnvironment extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
StellaEnvironment(OSystem system,
RomSettings settings) |
StellaEnvironment(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
act(int player_a_action,
int player_b_action)
Applies the given actions (e.g.
|
ALEState |
cloneState()
Returns a copy of the current emulator state.
|
ALEState |
cloneSystemState()
Returns a copy of the current emulator state.
|
int |
getEpisodeFrameNumber() |
int |
getFrameNumber() |
ALERAM |
getRAM() |
ALEScreen |
getScreen()
Returns the current screen after processing (e.g.
|
ALEState |
getState() |
StellaEnvironmentWrapper |
getWrapper()
Returns a wrapper providing #include-free access to our methods.
|
boolean |
isTerminal()
Returns true once we reach a terminal state
|
void |
load() |
void |
pressSelect() |
void |
pressSelect(long num_steps)
Keep pressing the console select button for a given amount of time
|
void |
reset()
Resets the system to its start state.
|
void |
restoreState(ALEState arg0)
Restores a previously saved copy of the state.
|
void |
restoreSystemState(ALEState arg0)
Restores a previously saved copy of the state, including RNG state information.
|
void |
save()
Save/restore the environment state onto the stack.
|
void |
setDifficulty(int value)
Set the difficulty according to the value.
|
void |
setMode(int value)
Set the game mode according to the value.
|
void |
setState(ALEState state)
Accessor methods for the environment state.
|
void |
softReset()
This functions emulates a push on the reset button of the console
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic StellaEnvironment(Pointer p)
Pointer.Pointer(Pointer).public StellaEnvironment(OSystem system, RomSettings settings)
public void reset()
public void save()
public void load()
@ByVal public ALEState cloneState()
public void restoreState(@Const @ByRef ALEState arg0)
@ByVal public ALEState cloneSystemState()
public void restoreSystemState(@Const @ByRef ALEState arg0)
@Cast(value="reward_t") public int act(@Cast(value="Action") int player_a_action, @Cast(value="Action") int player_b_action)
public void softReset()
public void pressSelect(@Cast(value="size_t") long num_steps)
public void pressSelect()
public void setDifficulty(@Cast(value="difficulty_t") int value)
public void setMode(@Cast(value="game_mode_t") int value)
@Cast(value="bool") public boolean isTerminal()
public void setState(@Const @ByRef ALEState state)
@Const @ByRef public ALEScreen getScreen()
public int getFrameNumber()
public int getEpisodeFrameNumber()
@Name(value="getWrapper().get") public StellaEnvironmentWrapper getWrapper()
Copyright © 2020. All rights reserved.