Data members in SGEntity
active
Variable: active
Is the entity active?
If set to SG_TRUE, the Entity can take events, otherwise it is skipped.
angle
Variable: angle
Entity's angle in radians.
body
Variable: body
The attached physics body.
cbInside
Variable: cbInside
Is the point considered to be inside the entity?
Returns:
SG_TRUE if the point is inside and SG_FALSE otherwise.
data
Variable: data
User-provided data.
depth
Variable: depth
Entity's depth, used for drawing order.
evInit
Variables: Init/deinit
Called just after or just before , respectively.
evStart
Variables: Looping
These are called regarding iterations in SIEGE.
event
Variable: event
Entity event handle.
lcDestroy
Variable: lcDestroy
The entity is about to be destroyed.
lcMouseEnter
Variables: lcMouse*
Mouse-related local events.
mask
Variable: mask
The attached mask.
minside
Variable: minside
Set to SG_TRUE if the mouse was inside in the previous iteration.
pausable
Variable: pausable
Is the entity pausable?
If set to SG_TRUE, then the entity is skipped during event handling if the game is paused.
source
Variable: source
The attached audio source.
sprite
Variable: sprite
The attached sprite.
visible
Variable: visible
Is the entity visible?
If an entity is invisible, it is not automatically drawn.
x
Variables: x,y
Entity's position.