Esempio n. 1
0
    /*===============================================================*/

    /*===============================================================*/
    /// <summary>初期化</summary>
    public void Initialize( )
    {
        // CSV読み込み機能を使った配列へのデータ読み込み
        CSVLoader loader = new CSVLoader( );

        CSV_EnemyStatusKeyData = loader.GetCSV_Key_Record("CSV/CSV_EnemyStatus", CSV_EnemyStatusKey);
    }
Esempio n. 2
0
    /*===============================================================*/

    /*===============================================================*/
    /// <summary>
    /// @brief 初期化
    /// </summary>
    void Initialize( )
    {
        // CSV読み込み機能を使った配列へのデータ読み込み
        CSVLoader loader = new CSVLoader( );

        CSV_CharacterStatusKeyData = loader.GetCSV_Key_Record("CSV/CSV_CharacterStatus", CSV_CharacterStatusKey);

        // Player1 に対するパラメーターの初期化
        Player1._Player1  = GetPlayerStatusData("Character01_ID");
        Player1.HP        = int.Parse(GetPlayerStatusData("Character01_HP"));
        Player1.MP        = int.Parse(GetPlayerStatusData("Character01_MP"));
        Player1.ATK       = int.Parse(GetPlayerStatusData("Character01_ATK"));
        Player1.MATK      = int.Parse(GetPlayerStatusData("Character01_MATK"));
        Player1.DEF       = int.Parse(GetPlayerStatusData("Character01_DEF"));
        Player1.MDEF      = int.Parse(GetPlayerStatusData("Character01_MDEF"));
        Player1.SPD       = int.Parse(GetPlayerStatusData("Character01_SPD"));
        Player1.LUCKY     = int.Parse(GetPlayerStatusData("Character01_lucky"));
        Player1.INT       = int.Parse(GetPlayerStatusData("Character01_INT"));
        Player1.WEAPON01  = GetPlayerStatusData("Character01_Weapon01");
        Player1.WEAPON02  = GetPlayerStatusData("Character01_Weapon02");
        Player1.FEELING   = GetPlayerStatusData("Character01_Feeling");
        Player1.SKILL     = GetPlayerStatusData("Character01_Skill");
        Player1.OverDrive = GetPlayerStatusData("Character01_OverDrive");


        // Player2 に対するパラメーターの初期化
        Player2._Player2  = GetPlayerStatusData("Character02_ID");
        Player2.HP        = int.Parse(GetPlayerStatusData("Character02_HP"));
        Player2.MP        = int.Parse(GetPlayerStatusData("Character02_MP"));
        Player2.ATK       = int.Parse(GetPlayerStatusData("Character02_ATK"));
        Player2.MATK      = int.Parse(GetPlayerStatusData("Character02_MATK"));
        Player2.DEF       = int.Parse(GetPlayerStatusData("Character02_DEF"));
        Player2.MDEF      = int.Parse(GetPlayerStatusData("Character02_MDEF"));
        Player2.SPD       = int.Parse(GetPlayerStatusData("Character02_SPD"));
        Player2.LUCKY     = int.Parse(GetPlayerStatusData("Character02_lucky"));
        Player2.INT       = int.Parse(GetPlayerStatusData("Character02_INT"));
        Player2.WEAPON01  = GetPlayerStatusData("Character02_Weapon01");
        Player2.WEAPON02  = GetPlayerStatusData("Character02_Weapon02");
        Player2.FEELING   = GetPlayerStatusData("Character02_Feeling");
        Player2.SKILL     = GetPlayerStatusData("Character02_Skill");
        Player2.OverDrive = GetPlayerStatusData("Character02_OverDrive");


        // Player3 に対するパラメーターの初期化
        Player3._Player3  = GetPlayerStatusData("Character03_ID");
        Player3.HP        = int.Parse(GetPlayerStatusData("Character03_HP"));
        Player3.MP        = int.Parse(GetPlayerStatusData("Character03_MP"));
        Player3.ATK       = int.Parse(GetPlayerStatusData("Character03_ATK"));
        Player3.MATK      = int.Parse(GetPlayerStatusData("Character03_MATK"));
        Player3.DEF       = int.Parse(GetPlayerStatusData("Character03_DEF"));
        Player3.MDEF      = int.Parse(GetPlayerStatusData("Character03_MDEF"));
        Player3.SPD       = int.Parse(GetPlayerStatusData("Character03_SPD"));
        Player3.LUCKY     = int.Parse(GetPlayerStatusData("Character03_lucky"));
        Player3.INT       = int.Parse(GetPlayerStatusData("Character03_INT"));
        Player3.WEAPON01  = GetPlayerStatusData("Character03_Weapon01");
        Player3.WEAPON02  = GetPlayerStatusData("Character03_Weapon02");
        Player3.FEELING   = GetPlayerStatusData("Character03_Feeling");
        Player3.SKILL     = GetPlayerStatusData("Character03_Skill");
        Player3.OverDrive = GetPlayerStatusData("Character03_OverDrive");


        // Player4 に対するパラメーターの初期化
        Player4._Player4  = GetPlayerStatusData("Character04_ID");
        Player4.HP        = int.Parse(GetPlayerStatusData("Character04_HP"));
        Player4.MP        = int.Parse(GetPlayerStatusData("Character04_MP"));
        Player4.ATK       = int.Parse(GetPlayerStatusData("Character04_ATK"));
        Player4.MATK      = int.Parse(GetPlayerStatusData("Character04_MATK"));
        Player4.DEF       = int.Parse(GetPlayerStatusData("Character04_DEF"));
        Player4.MDEF      = int.Parse(GetPlayerStatusData("Character04_MDEF"));
        Player4.SPD       = int.Parse(GetPlayerStatusData("Character04_SPD"));
        Player4.LUCKY     = int.Parse(GetPlayerStatusData("Character04_lucky"));
        Player4.INT       = int.Parse(GetPlayerStatusData("Character04_INT"));
        Player4.WEAPON01  = GetPlayerStatusData("Character04_Weapon01");
        Player4.WEAPON02  = GetPlayerStatusData("Character04_Weapon02");
        Player4.FEELING   = GetPlayerStatusData("Character04_Feeling");
        Player4.SKILL     = GetPlayerStatusData("Character04_Skill");
        Player4.OverDrive = GetPlayerStatusData("Character04_OverDrive");


        // Player5 に対するパラメーターの初期化
        Player5._Player5  = GetPlayerStatusData("Character05_ID");
        Player5.HP        = int.Parse(GetPlayerStatusData("Character05_HP"));
        Player5.MP        = int.Parse(GetPlayerStatusData("Character05_MP"));
        Player5.ATK       = int.Parse(GetPlayerStatusData("Character05_ATK"));
        Player5.MATK      = int.Parse(GetPlayerStatusData("Character05_MATK"));
        Player5.DEF       = int.Parse(GetPlayerStatusData("Character05_DEF"));
        Player5.MDEF      = int.Parse(GetPlayerStatusData("Character05_MDEF"));
        Player5.SPD       = int.Parse(GetPlayerStatusData("Character05_SPD"));
        Player5.LUCKY     = int.Parse(GetPlayerStatusData("Character05_lucky"));
        Player5.INT       = int.Parse(GetPlayerStatusData("Character05_INT"));
        Player5.WEAPON01  = GetPlayerStatusData("Character05_Weapon01");
        Player5.WEAPON02  = GetPlayerStatusData("Character05_Weapon02");
        Player5.FEELING   = GetPlayerStatusData("Character05_Feeling");
        Player5.SKILL     = GetPlayerStatusData("Character05_Skill");
        Player5.OverDrive = GetPlayerStatusData("Character05_OverDrive");


        // Player6 に対するパラメーターの初期化
        Player6._Player6  = GetPlayerStatusData("Character06_ID");
        Player6.HP        = int.Parse(GetPlayerStatusData("Character06_HP"));
        Player6.MP        = int.Parse(GetPlayerStatusData("Character06_MP"));
        Player6.ATK       = int.Parse(GetPlayerStatusData("Character06_ATK"));
        Player6.MATK      = int.Parse(GetPlayerStatusData("Character06_MATK"));
        Player6.DEF       = int.Parse(GetPlayerStatusData("Character06_DEF"));
        Player6.MDEF      = int.Parse(GetPlayerStatusData("Character06_MDEF"));
        Player6.SPD       = int.Parse(GetPlayerStatusData("Character06_SPD"));
        Player6.LUCKY     = int.Parse(GetPlayerStatusData("Character06_lucky"));
        Player6.INT       = int.Parse(GetPlayerStatusData("Character06_INT"));
        Player6.WEAPON01  = GetPlayerStatusData("Character06_Weapon01");
        Player6.WEAPON02  = GetPlayerStatusData("Character06_Weapon02");
        Player6.FEELING   = GetPlayerStatusData("Character06_Feeling");
        Player6.SKILL     = GetPlayerStatusData("Character06_Skill");
        Player6.OverDrive = GetPlayerStatusData("Character06_OverDrive");

        // List に格納する
        players.Add(Player1);
        players.Add(Player2);
        players.Add(Player3);
        players.Add(Player4);
        players.Add(Player5);
        players.Add(Player6);
    }