示例#1
0
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)
示例#2
0
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)