コード例 #1
0
    public static void RandomRoom(Dungeon d, Creature p, Event[] Event)
    {
        foreach (Event e in Event)
        {
            int a = e.eventType;
            switch (a)
            {
            case 1:
                RandomEvent.Event1(d, p, e);
                break;

            case 2:
                RandomEvent.Event2(d, p, e);
                break;

            case 3:
                RandomEvent.Event3(d, p, e);
                break;

            case 4:
                RandomEvent.Event4(d, p, e);
                break;

            case 5:
                RandomEvent.Event1(d, p, e);
                break;

            case 6:
                RandomEvent.Event2(d, p, e);
                break;

            case 7:
                RandomEvent.Event3(d, p, e);
                break;

            case 8:
                RandomEvent.Event4(d, p, e);
                break;

            case 9:
                RandomEvent.Event1(d, p, e);
                break;

            case 10:
                RandomEvent.Event2(d, p, e);
                break;

            case 11:
                RandomEvent.Event3(d, p, e);
                break;

            case 12:
                RandomEvent.Event4(d, p, e);
                break;
            }
        }
    }
コード例 #2
0
    public static void Room(Dungeon d, Creature p, Event[] Event)
    {
        foreach (Event e in Event)
        {
            int a = e.eventType;
            switch (a)
            {
            case 0:
                Monster.opponentList = new List <Monster> {
                };
                Monster.opponentList.Add(d.boss.MonsterCopy());
                Combat.Start(p, Monster.opponentList, d);
                break;

            case 1:
                RandomEvent.Event1(d, p, e);
                break;
            }
        }
    }