Example #1
0
def start_quest_mode(player_name):
    """
    Fonction qui commence les quĂȘtes de l'utilisateur
    :param player_name: nom du joueur
    :return:
    """
    print "start load"
    # On reprend la progression du joueur, s'il est nouveau on fait le scénario d'intro
    # quest = Questor("IntroNaoGarden", player_name)

    scn_end = False
    while not scn_end:
        quest = Questor("PlanterBulbe", Setting.CURRENT_PLAYER.player_name if Setting.CURRENT_PLAYER else player_name)
        print "start lauch"
        scn_end = quest.launch()
        quest.player.save()
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from NaoCreator.setting import Setting

Setting(nao_connected=False,
        debug=True,
        bypass_wait_for=False,
        nao_quest_v="2.1",
        load_cpt_data=False,
        ip="169.254.88.3",
        USE_MIC=False)

from NaoQuest.questor import Questor
from PlayerManager.player_manager import Player
from NaoSimulator.get_mic_input import record

Player("swan").save()
q = Questor('PlanterBulbe', "swan")
q.launch()
q.player.save()
# coding: utf-8
from NaoCreator.setting import Setting
Setting(nao_connected=False,
        debug=True,
        bypass_wait_for=True,
        nao_quest_v="2.1",
        ip="192.168.0.1")

from NaoQuest.questor import Questor

# Player("swan").save()
q = Questor('demo', "swan")
q.launch()
q.player.save()
Example #4
0
# coding: utf-8
from NaoCreator.setting import Setting
Setting(nao_connected=True,
        debug=True,
        nao_quest_v="2.1",
        bypass_wait_for=False,
        load_cpt_data=False,
        ip="169.254.88.3")

from NaoQuest.questor import Questor
from NaoQuest.scenario import Scenario
from PlayerManager.player_manager import Player
from NaoQuest.objectives.cpt_objective import CptObjective

Player("tristan").save()
q = Questor('demo', "tristan")
q.launch()
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from NaoCreator.setting import Setting
Setting(nao_connected=False, debug=True, nao_quest_v="2.1", bypass_wait_for=True, ip="192.168.0.1")

from NaoQuest.questor import Questor
from PlayerManager.player_manager import Player

Player("swan").save()
q = Questor('InfoJardin', "swan")
q.launch()
q.player.save()
# coding: utf-8
from NaoCreator.setting import Setting
Setting(nao_connected=False, debug=True, nao_quest_v="2.1", ip="192.168.0.1")

from NaoQuest.questor import Questor
from PlayerManager.player_manager import Player

Player("boby").save()
q = Questor('Absence', "boby")
q.launch()
q.player.save()
Example #7
0
# coding: utf-8
from NaoCreator.setting import Setting

Setting(nao_connected=False,
        debug=True,
        nao_quest_v="2.1",
        bypass_wait_for=True,
        load_cpt_data=False,
        use_mic=False,
        ip="192.168.0.1")

from NaoQuest.questor import Questor
from NaoQuest.scenario import Scenario
from PlayerManager.player_manager import Player

from NaoQuest.objectives.cpt_objective import CptObjective

Player("tristan").save()
q = Questor('terrainPropice', "tristan")
q.launch()