This commit is contained in:
Daveo 2001-04-03 20:03:16 +00:00
parent 0228fcc820
commit 948117a252
2 changed files with 12 additions and 0 deletions

View file

@ -223,6 +223,17 @@ void CNpcEnemy::setStartPos( s32 xPos, s32 yPos )
m_base = Pos; m_base = Pos;
} }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Static function to initialise the actor pool with levels nasty folk
void CNpcEnemy::CacheActor(int Type)
{
int m_type = mapEditConvertTable[Type - NPC_ENEMY_MAPEDIT_OFFSET];
CActorPool::GetActor(m_data[m_type].skelType);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
void CNpcEnemy::init() void CNpcEnemy::init()

View file

@ -170,6 +170,7 @@ public:
void setPathType( u8 newType ) {m_npcPath.setPathType( newType );} void setPathType( u8 newType ) {m_npcPath.setPathType( newType );}
void setStartPos( s32 xPos, s32 yPos ); void setStartPos( s32 xPos, s32 yPos );
static void CacheActor(int Type);
private: private:
class CLayerCollision *m_layerCollision; class CLayerCollision *m_layerCollision;