def schedule_entity(world, entity, i_store): if isinstance(entity, entities.MinerNotFull): actions.schedule_miner(world, entity, 0, i_store) elif isinstance(entity, entities.Vein): actions.schedule_vein(world, entity, 0, i_store) elif isinstance(entity, entities.Ore): actions.schedule_ore(world, entity, 0, i_store)