Package : Sprites
class CBaseSpr
Base class for all sprites
Attributes Index
public BOOL m_enable
public short m_posX
public short m_posY
public uchar m_objectID
Methods Index
CBaseSpr , Draw , IsEnable , SetDisable , SetEnable , SetPos , Attributes Details
public BOOL m_enable
TRUE if sprite is enable
public short m_posX
position X of sprite
public short m_posY
position Y of sprite
public uchar m_objectID
sprite(=object) ID to know what the sprite is
Methods Details
CBaseSpr
- public CBaseSpr(uchar objID, short initX, short initY)
Standard constructor
Parameters:
objID - define the sprite ID
iniX - initial X position of sprite
iniY - initial Y position of sprite
Draw
- public virtual void Draw()
Draw the sprite (must be implemented in sub-class)
IsEnable
- public virtual inline BOOL IsEnable()
Returns:
m_enable
SetDisable
- public virtual inline void SetDisable()
set m_enable to FALSE
SetEnable
- public virtual inline void SetEnable()
set m_enable to TRUE
SetPos
- public virtual inline void SetPos(short x, short y)
set m_pos to (x,y)