LVL_Npc::LVL_Npc(LevelScene *_parent) : PGE_Phys_Object(_parent), detector_player_pos(this) { /* ****** PHYSICS ******* */ m_filterID = 2; m_blocked[1] = Block_NONE; m_blocked[2] = Block_NONE; m_danger[1] = Block_ALL; m_danger[2] = Block_NONE; m_allowHoleRuning = false; m_onSlopeFloorTopAlign = true; /* ****** PHYSICS ******* */ type = LVLNPC; m_bodytype = Body_DYNAMIC; _npc_id = 0; data = FileFormats::CreateLvlNpc(); animated = false; animator_ID = 0; killed = false; transformedFromBlockID = -1ul; transformedFromNpcID = -1ul; isActivated = false; deActivatable = true; reSpawnable = true; wasDeactivated = false; offSectionDeactivate = false; activationTimeout = 4000; m_spawnedGeneratorType = LevelScene::GENERATOR_APPEAR; m_spawnedGeneratorDirection = LevelScene::SPAWN_UP; warpSpawing = false; m_isInited = false; isLuaNPC = false; isWarping = false; is_static = false; is_activity = true; is_shared_animation = false; keep_position_on_despawn = false; warpDirectO = 0; warpSpriteOffset = 1.0f; warpFrameW = 0.0f; warpFrameH = 0.0f; m_disableBlockCollision = false; disableNpcCollision = false; enablePlayerCollision = true; _stucked = false; bumpDown = false; bumpUp = false; health = 1; m_isGenerator = false; generatorTimeLeft = 0; generatorType = 0; generatorDirection = 0; resetThrowned(); buddies_list = NULL; buddies_updated = false; buddies_leader = NULL; //collision_speed_add.clear(); }
LVL_Npc::LVL_Npc() : PGE_Phys_Object(), detector_player_pos(this) { type = LVLNPC; data = FileFormats::dummyLvlNpc(); animated=false; animator_ID=0; killed=false; isActivated=false; deActivatable=true; reSpawnable=true; wasDeactivated=false; activationTimeout=4000; warpSpawing=false; _isInited=false; isLuaNPC=false; isWarping=false; is_scenery=false; warpDirectO=0; warpSpriteOffset=1.0f; warpFrameW=0.0f; warpFrameH=0.0f; _onGround=false; disableBlockCollision=false; disableNpcCollision=false; _stucked=false; bumpDown=false; bumpUp=false; forceCollideCenter=false; _heightDelta=0.0f; cliffDetected=false; health = 1; isGenerator=false; generatorTimeLeft=0; generatorType=0; generatorDirection=0; resetThrowned(); buddies_list=NULL; buddies_updated=false; buddies_leader=NULL; }