895 const char** nameBuf);
958 void (*destructor)(
AERLocal* local));
int32_t AERInstanceGetObject(AERInstance *inst)
Query the object of an instance.
void AERInstanceSetSprite(AERInstance *inst, int32_t spriteIdx)
Set the sprite of an instance.
float AERInstanceGetSpriteAngle(AERInstance *inst)
Query the sprite offset angle of an instance.
bool AERInstanceGetTangible(AERInstance *inst)
Query the tangibility of an instance.
AERLocal * AERInstanceCreateModLocal(AERInstance *inst, const char *name, bool public, void(*destructor)(AERLocal *local))
Create a new mod local variable for an instance.
int32_t AERInstanceGetAlarm(AERInstance *inst, uint32_t alarmIdx)
Query the state of an alarm of an instance.
bool AERInstanceGetVisible(AERInstance *inst)
Query the visibility of an instance.
void AERInstanceAddMotion(AERInstance *inst, float x, float y)
Add to the existing motion of an instance.
float AERInstanceGetFriction(AERInstance *inst)
Query the friction of an instance.
void AERInstanceSetDeactivated(AERInstance *inst, bool deactivated)
Set the deactivation state of an instance.
void AERInstanceGetMotion(AERInstance *inst, float *x, float *y)
Query the motion of an instance.
float AERInstanceGetSpriteSpeed(AERInstance *inst)
Query the sprite animation speed of an instance.
void AERInstanceSetAlarm(AERInstance *inst, uint32_t alarmIdx, int32_t numSteps)
Set the state of an alarm of an instance.
float AERInstanceGetSpriteAlpha(AERInstance *inst)
Query the sprite alpha (transparency) of an instance.
AERLocal * AERInstanceGetModLocal(AERInstance *inst, const char *name, bool public)
Get a reference to a specific mod local variable of an instance.
void AERInstanceSetFriction(AERInstance *inst, float friction)
Set the friction of an instance.
AERInstance * AERInstanceGetById(int32_t instId)
Query the instance with a specific ID in the current room.
void AERInstanceSetTangible(AERInstance *inst, bool tangible)
Set the tangibility of an instance.
void AERInstance
Opaque type for instance of an object.
Definition: instance.h:36
void AERInstanceSetSpriteBlend(AERInstance *inst, uint32_t color)
Set the sprite blend color of an instance.
void AERInstanceAddPosition(AERInstance *inst, float x, float y)
Add to the existing position of an instance in the current room.
bool AERInstanceGetDeactivated(AERInstance *inst)
Query whether or not an instance is deactivated.
void AERInstanceSetSpriteAlpha(AERInstance *inst, float alpha)
Set the sprite alpha (transparency) of an instance.
bool AERInstanceCompatibleWith(AERInstance *inst, int32_t objIdx)
Query whether an instance's object is or inherits from another object.
AERLocal * AERInstanceGetHLDLocal(AERInstance *inst, const char *name)
Get a reference to a specific vanilla local variable of an instance.
void AERInstanceSetVisible(AERInstance *inst, bool visible)
Set the visibility of an instance.
size_t AERInstanceGetByObject(int32_t objIdx, bool recursive, size_t bufSize, AERInstance **instBuf)
Query all instances of an object in the current room.
bool AERInstanceGetPersistent(AERInstance *inst)
Query the persistence of an instance.
uint32_t AERInstanceGetSpriteBlend(AERInstance *inst)
Query the sprite blend color of an instance.
void AERInstanceGetBoundingBox(AERInstance *inst, float *left, float *top, float *right, float *bottom)
Query the axis-aligned bounding box of an instance.
void AERInstanceSetMotion(AERInstance *inst, float x, float y)
Set the motion of an instance.
void AERInstanceSetSpriteSpeed(AERInstance *inst, float speed)
Set the sprite animation speed of an instance.
size_t AERInstanceGetAll(size_t bufSize, AERInstance **instBuf)
Query all instances in the current room.
int32_t AERInstanceGetSprite(AERInstance *inst)
Query the sprite of an instance.
void AERInstanceSetMask(AERInstance *inst, int32_t maskIdx)
Set the collision mask of an instance.
float AERInstanceGetSpriteFrame(AERInstance *inst)
Query the current frame of sprite animation of an instance.
void AERInstanceSetSpriteScale(AERInstance *inst, float x, float y)
Set the sprite scale of an instance.
void AERInstanceSetSpriteFrame(AERInstance *inst, float frame)
Set the current frame of sprite animation of an instance.
AERLocal AERInstanceDeleteModLocal(AERInstance *inst, const char *name, bool public)
Destroy a mod local variable but do not call its destructor.
void AERInstanceDestroy(AERInstance *inst)
Destroy an instance and call its destroy event.
void AERInstanceSyncDepth(AERInstance *inst)
Set the render depth of an instance based on its position in the current room.
void AERInstanceGetSpriteScale(AERInstance *inst, float *x, float *y)
Query the sprite scale of an instance.
size_t AERInstanceGetHLDLocals(AERInstance *inst, size_t bufSize, const char **nameBuf)
Query the names of all vanilla local variables of an instance.
float AERInstanceGetDepth(AERInstance *inst)
Query the render depth of an instance.
void AERInstanceSetDepth(AERInstance *inst, float depth)
Set the render depth of an instance.
void AERInstanceSetPosition(AERInstance *inst, float x, float y)
Set the position of an instance in the current room.
void AERInstanceChange(AERInstance *inst, int32_t newObjIdx, bool doEvents)
Convert an instance of one object into an instance of another object in-place.
int32_t AERInstanceGetId(AERInstance *inst)
Query the ID of an instance.
void AERInstanceSetPersistent(AERInstance *inst, bool persistent)
Set the persistence of an instance.
int32_t AERInstanceGetMask(AERInstance *inst)
Query the collision mask of an instance.
void AERInstanceGetPosition(AERInstance *inst, float *x, float *y)
Query the position of an instance in the current room.
void AERInstanceDelete(AERInstance *inst)
Destroy an instance but do not call its destroy event.
void AERInstanceDestroyModLocal(AERInstance *inst, const char *name, bool public)
Destroy a mod local variable and call its destructor.
void AERInstanceSetSpriteAngle(AERInstance *inst, float angle)
Set the sprite offset angle of an instance.
AERInstance * AERInstanceCreate(int32_t objIdx, float x, float y)
Create an instance of an object.
A dynamic member variable of an instance.
Definition: instance.h:43