Class Extra

Description

Extra provides a wrap for the sprite runtime information which is used by the engine to manage it.

local extra = getExtra(self);

The same information can be obtained via Sprte:get() using one of the following constant.

EXTRA_ORGPROTO
EXTRA_ORGX          
EXTRA_ORGY          
EXTRA_HP            
EXTRA_OLDAIM1     
EXTRA_OLDAIM2     
EXTRA_FALLHEIGHT  
EXTRA_LIVES       
EXTRA_ACTIVE      
EXTRA_BULLETCOUNT 
EXTRA_OWNER       
EXTRA_FLAGS       
EXTRA_PATHDIR     
EXTRA_PATHPTR     
EXTRA_ANIMSEQ     
EXTRA_ANIMPTR     
EXTRA_ANIMSPEED 
EXTRA_DEATHINDICATOR
EXTRA_AGE   
EXTRA_TIMEOUT     
EXTRA_TAGFLAGS 
EXTRA_INVENTORY

const extra

Members

  • int objId
  • int orgProto
  • int orgX
  • int orgY
  • int hp
  • int oldAim1
  • int oldAim2
  • int fallHeight
  • int lives
  • int active
  • int bulletCount
  • int owner
  • int flags
  • int pathDir
  • int pathPtr
  • int animSeq
  • int animPtr
  • int animSpeed
  • int deathIndicator