示例#1
0
    public void Test_CharacterWithUISwapping()
    {
        Test_Action_Proper_1 tap_1 = new Test_Action_Proper_1();

        tap_1.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.STRIKE, tap_1);

        Test_Action_Proper_2 tap_2 = new Test_Action_Proper_2();

        tap_2.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.HEAL_TARGET, tap_2);

        Test_Action_Proper_3 tap_3 = new Test_Action_Proper_3();

        tap_3.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.MULTI_STRIKE, tap_3);

        Test_Affix_Proper_1 tafp_1 = new Test_Affix_Proper_1();

        tafp_1.Init();
        ActionData.AFFIX_DICTIONARY.Add(ActionData.AFFIX_LIST_ID.DOT_BASIC, tafp_1);

        m_Char1.GetComponent <Test_Character_Proper_1>().Init();
        m_Char2.GetComponent <Test_Character_Proper_2>().Init();
        //cbIntTest.CreateCharacterInformationDisplay(GameManager.GetPlayerManager.GetCharacterList()[0]);
        //cbIntTest.CreateCharacterInformationDisplay(GameManager.GetPlayerManager.GetCharacterList()[1]);

        m_CombatManager.SetCurrentSelectedCharacter(GameManager.GetPlayerManager.GetCharacterList()[0]);
        m_CombatManager.m_CombatUIController = combatInterface.GetComponent <CombatInterfaceController>();
        m_CombatManager.m_CombatUIController.GetInterfaceModel().UpdateListOfActions();
        //combatInterface.GetComponent<CombatInterfaceController>().GetInterfaceModel().UpdateListOfActions();

        Test_ItemEquip();
    }
示例#2
0
    public void Test_JSON_Load()
    {
        Test_Action_Proper_1 tap_1 = new Test_Action_Proper_1();

        tap_1.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.STRIKE, tap_1);

        Test_Action_Proper_2 tap_2 = new Test_Action_Proper_2();

        tap_2.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.HEAL_TARGET, tap_2);

        Test_Action_Proper_3 tap_3 = new Test_Action_Proper_3();

        tap_3.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.MULTI_STRIKE, tap_3);

        Test_Affix_Proper_1 tafp_1 = new Test_Affix_Proper_1();

        tafp_1.Init();
        ActionData.AFFIX_DICTIONARY.Add(ActionData.AFFIX_LIST_ID.DOT_BASIC, tafp_1);

        m_Char1.GetComponent <GenericCharacterController>().InitCharacterWithJSON("JSON/Test_JSON/Test_Player_1");

        m_CombatManager.SetCurrentSelectedCharacter(GameManager.GetPlayerManager.GetCharacterList()[0]);
        m_CombatManager.m_CombatUIController = combatInterface.GetComponent <CombatInterfaceController>();
        m_CombatManager.m_CombatUIController.GetInterfaceModel().UpdateListOfActions();

        m_CombatManager.m_CharacterCombatList.Add(m_Char1);
    }
示例#3
0
    public void Test_Enemy_AI()
    {
        Test_Action_Proper_1 tap_1 = new Test_Action_Proper_1();

        tap_1.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.STRIKE, tap_1);

        Test_Action_Proper_2 tap_2 = new Test_Action_Proper_2();

        tap_2.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.HEAL_TARGET, tap_2);

        Test_Action_Proper_3 tap_3 = new Test_Action_Proper_3();

        tap_3.Init();
        ActionData.ABILITY_DICTIONARY.Add(ActionData.ACTION_LIST_ID.MULTI_STRIKE, tap_3);

        Test_Affix_Proper_1 tafp_1 = new Test_Affix_Proper_1();

        tafp_1.Init();
        ActionData.AFFIX_DICTIONARY.Add(ActionData.AFFIX_LIST_ID.DOT_BASIC, tafp_1);

        m_Char1.GetComponent <Test_Character_Proper_1>().Init();
        m_Char2.GetComponent <Test_Character_Proper_2>().Init();
        m_Enemy1.GetComponent <Test_Enemy_1>().Init();

        Test_Equipment1 testItem = new Test_Equipment1();

        testItem.Init();
        ItemData.ITEM_DICTIONARY.Add(ItemData.ITEM_ID.TEST_ITEM_WEAPON, testItem);
        m_PlayerManager.GetCharacterList()[0].AddEquipmentToCharacter(ItemData.ITEM_ID.TEST_ITEM_WEAPON);



        m_CombatManager.SetCurrentSelectedCharacter(GameManager.GetPlayerManager.GetCharacterList()[0]);
        m_CombatManager.m_CombatUIController = combatInterface.GetComponent <CombatInterfaceController>();
        m_CombatManager.m_CombatUIController.GetInterfaceModel().UpdateListOfActions();

        //Add them all to combat manager list
        //m_CombatManager.m_AllActionUsers.Add(GameManager.GetPlayerManager.GetCharacterList()[0]);
        //m_CombatManager.m_AllActionUsers.Add(GameManager.GetPlayerManager.GetCharacterList()[1]);
        //m_CombatManager.m_AllActionUsers.Add(m_Enemy1.GetComponent<Test_Enemy_1>().GetCharacterStats());

        m_CombatManager.m_CharacterCombatList.Add(m_Char1);
        m_CombatManager.m_CharacterCombatList.Add(m_Char2);
        m_CombatManager.m_CharacterCombatList.Add(m_Enemy1);
    }