core/entity.h

Includes from this file:

Declarations in this file:

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.
evDeinit
evDraw
evExit
evInit
Variables: Init/deinit Called just after or just before , respectively.
evJoystickButton
Variables: evJoystick* Joystick-related events.
evJoystickButtonPress
evJoystickButtonRelease
evJoystickMove
evKeyboardCharPress
evKeyboardCharRepeat
evKeyboardKey
Variables: evKeyboard* Keyboard-related events.
evKeyboardKeyPress
evKeyboardKeyRelease
evKeyboardKeyRepeat
evLevelEnd
evLevelStart
Variables: evLevel* Level-related events.
evMouseButton
Variables: evMouse* Mouse-related global events.
evMouseButtonLeft
evMouseButtonLeftPress
evMouseButtonLeftRelease
evMouseButtonMiddle
evMouseButtonMiddlePress
evMouseButtonMiddleRelease
evMouseButtonPress
evMouseButtonRelease
evMouseButtonRight
evMouseButtonRightPress
evMouseButtonRightRelease
evMouseMove
evMouseWheel
evStart
Variables: Looping These are called regarding iterations in SIEGE.
evTick
evTickBegin
evTickEnd
evWindowClose
evWindowOpen
Variables: evWindow* Window-related events.
evWindowResize
event
Variable: event Entity event handle.
lcCollision
lcCollisionBegin
lcCollisionEnd
lcCollisionOne
lcCollisionOneBegin
lcCollisionOneEnd
lcCollisionTwo
lcCollisionTwoBegin
lcCollisionTwoEnd
lcDestroy
Variable: lcDestroy The entity is about to be destroyed.
lcMouseButton
lcMouseButtonLeft
lcMouseButtonLeftPress
lcMouseButtonLeftRelease
lcMouseButtonMiddle
lcMouseButtonMiddlePress
lcMouseButtonMiddleRelease
lcMouseButtonPress
lcMouseButtonRelease
lcMouseButtonRight
lcMouseButtonRightPress
lcMouseButtonRightRelease
lcMouseEnter
Variables: lcMouse* Mouse-related local events.
lcMouseExit
lcMouseMove
lcMouseWheel
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.
y

Functions

_sgEntityInit
_sg_evCall
_sg_evDraw
sgEntityCreate
Function: sgEntityCreate Create a new entity.
sgEntityGetPos
sgEntitySetAudioSource
Functions: sgEntity*AudioSource Attach/get the entity's audio source.
sgEntitySetMask
Functions: sgEntity*Mask Attach/get the entity's collision mask.
sgEntitySetPhysicsBody
Functions: sgEntity*PhysicsBody Attach/get the entity's physical body.
sgEntitySetPos
Functions: sgEntity*Pos* Set/get the entity's position.
sgEntitySetPosX
sgEntitySetSprite
Functions: sgEntity*Sprite Attach/get the entity's sprite.

Structs

SGAudioSource
SGMask
SGSprite

Typedefs

SGEntity