This commit is contained in:
Charles 2001-05-04 21:58:41 +00:00
parent 17723f2894
commit b81f49a1cd
4 changed files with 35 additions and 0 deletions

View file

@ -128,6 +128,8 @@ const FileEquate loadingScreens[6]=
DVECTOR CLevel::MapPos;
DVECTOR CLevel::s_playerSpawnPos;
u8 CLevel::m_isBossRespawn;
s32 CLevel::m_bossHealth;
/*****************************************************************************/
CLevel::CLevel()
{
@ -178,6 +180,9 @@ sLvlTab *lvlTab=&LvlTable[LevelNo];
MapPos.vx=MapPos.vy=0;
initLayers();
m_isBossRespawn = false;
m_bossHealth = 0;
}
/*****************************************************************************/
@ -486,6 +491,9 @@ void CLevel::initThings(int _respawningLevel)
/*****************************************************************************/
void CLevel::respawnLevel()
{
m_isBossRespawn = false;
m_bossHealth = 0;
CThingManager::killAllThingsForRespawn();
initThings(true);
}

View file

@ -52,6 +52,11 @@ public:
void respawnLevel();
static u8 getIsBossRespawn() {return m_isBossRespawn;}
static s32 getBossHealth() {return m_bossHealth;}
static void setIsBossRespawn( u8 newIsBossRespawn ) {m_isBossRespawn=newIsBossRespawn;}
static void setBossHealth( s32 newBossHealth ) {m_bossHealth=newBossHealth;}
private:
void initLayers();
@ -86,6 +91,9 @@ private:
int HazardCount;
sThingHazard **HazardList;
static u8 m_isBossRespawn;
static s32 m_bossHealth;
};
/*****************************************************************************/