Package : Enemies
class CE_Shad1 : public CEnemy
Class Shad'Ow Enemy which create a Boss 16*16pixels with 4 sprites 8*8
Attributes Index
public uchar m_spr1
public uchar m_spr2
public uchar m_spr3
public uchar m_spr4
Methods Index
AutoMove , CE_Shad1 , Draw , IncLife , SetDamaged , SetKilled , Attributes Details
public uchar m_spr1
First corner of sprite
public uchar m_spr2
Second corner of sprite
public uchar m_spr3
Third corner of sprite
public uchar m_spr4
Fourth corner of sprite
Methods Details
AutoMove
- public BOOL AutoMove()
Simple diagonal move without AI
CE_Shad1
- public CE_Shad1(short initX, short initY)
Standard constructor
See also: CEnemy#CEnemy(),
Draw
- public void Draw()
Special for drawing 16*16 sprite from 8*8 sprites
IncLife
- public char IncLife(char inc)
IncLife enable if only weapon is the sword
SetDamaged
- public void SetDamaged()
When damaged, with sword only, this boss create 2 Follower Enemies
SetKilled
- public void SetKilled()
When killed, this boss give a key type 1