コード例 #1
0
ファイル: Camper.cs プロジェクト: isaachecker/SummerCampGame
    private void initializeAncDesires()
    {
        List <DesireType> desireTypes = Desire.GetRandomAncDesireTypes(numAncDesires);

        for (int i = 0; i < desireTypes.Count; i++)
        {
            DesireType type = desireTypes[i];
            switch (type)
            {
            case DesireType.chill: chillDesireIdx = i; break;

            case DesireType.music: musicDesireIdx = i; break;

            case DesireType.nature: natureDesireIdx = i; break;

            case DesireType.science: scienceDesireIdx = i; break;

            case DesireType.exercise: exerciseDesireIdx = i; break;

            case DesireType.creative: creativeDesireIdx = i; break;

            case DesireType.community: communityDesireIdx = i; break;

            case DesireType.education: educationDesireIdx = i; break;

            case DesireType.spirituality: spiritualityDesireIdx = i; break;
            }
            ancDesires[i] = new Desire(type, 1);
        }
    }