@Namespace(value="ale") @NoOffset @Properties(inherit=ale.class) public class ALEState extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ALEState() |
ALEState(ALEState rhs,
BytePointer serialized) |
ALEState(ALEState rhs,
String serialized) |
ALEState(BytePointer serialized) |
ALEState(long size)
Native array allocator.
|
ALEState(Pointer p)
Pointer cast constructor.
|
ALEState(String serialized) |
Modifier and Type | Method and Description |
---|---|
void |
applyActionPaddles(Event event_obj,
int player_a_action,
int player_b_action)
Applies paddle actions.
|
boolean |
equals(ALEState state)
Returns true if the two states contain the same saved information
|
int |
getCurrentMode() |
int |
getDifficulty() |
int |
getEpisodeFrameNumber() |
int |
getFrameNumber() |
ALEState |
getPointer(long i) |
void |
incrementFrame() |
void |
incrementFrame(int steps) |
ALEState |
position(long position) |
void |
pressSelect(Event event_obj) |
void |
resetEpisodeFrameNumber() |
void |
resetPaddles(Event arg0) |
BytePointer |
serialize() |
void |
setActionJoysticks(Event event_obj,
int player_a_action,
int player_b_action)
Sets the joystick events.
|
void |
setCurrentMode(int value) |
void |
setDifficulty(int value)
set the difficulty according to the value.
|
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 ALEState(Pointer p)
Pointer(Pointer)
.public ALEState(long size)
Pointer.position(long)
.public ALEState()
public ALEState(@Const @ByRef ALEState rhs, @StdString BytePointer serialized)
public ALEState(@Const @ByRef ALEState rhs, @StdString String serialized)
public ALEState(@StdString BytePointer serialized)
public ALEState(@StdString String serialized)
public ALEState getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public boolean equals(@ByRef ALEState state)
public void resetPaddles(Event arg0)
public void pressSelect(Event event_obj)
public void applyActionPaddles(Event event_obj, int player_a_action, int player_b_action)
public void setActionJoysticks(Event event_obj, int player_a_action, int player_b_action)
public void incrementFrame(int steps)
public void incrementFrame()
public void resetEpisodeFrameNumber()
public int getFrameNumber()
public int getEpisodeFrameNumber()
public void setDifficulty(@Cast(value="unsigned int") int value)
@StdString public BytePointer serialize()
Copyright © 2022. All rights reserved.