Example #1
0
        public ArtifactQuest(string name, Commands cmds, GLNames glNames)
        {
            this.name = name;
            Convert(cmds, "name", ref this.name);
            Convert(cmds, "matlabConsol", ref matlabConsol);

            // CREATE POISSON DISCS

            poissonDisc = new PoissonDisc[poissonRadii.Length];
            for (int i = 0; i < poissonRadii.Length; i++)
            {
                if (poissonRadii[i] <= 0f)
                    continue;
                if (cmds.ContainsKey("minRadius"))
                    cmds.Remove("minRadius");
                cmds.Add("minRadius", new[] { poissonRadii[i].ToString(EN) });
                poissonDisc[i] = new PoissonDisc(name, cmds, glNames);
            }

            // CREATE PSYCHOPHYSICS TOOLBOX QUESTS //

            nQuests = new int[quests.Length];
            factor = artifactSize.Max();

            activeQuest = NextRandomQuest();
            randomAngle = NextRandomAngle();
        }
Example #2
0
        public ArtifactQuest(string name, Commands cmds, GLNames glNames)
        {
            this.name = name;
            Convert(cmds, "name", ref this.name);
            Convert(cmds, "matlabConsol", ref matlabConsol);

            // CREATE POISSON DISCS

            poissonDisc = new PoissonDisc[poissonRadii.Length];
            for (int i = 0; i < poissonRadii.Length; i++)
            {
                if (poissonRadii[i] <= 0f)
                {
                    continue;
                }
                if (cmds.ContainsKey("minRadius"))
                {
                    cmds.Remove("minRadius");
                }
                cmds.Add("minRadius", new[] { poissonRadii[i].ToString(EN) });
                poissonDisc[i] = new PoissonDisc(name, cmds, glNames);
            }

            // CREATE PSYCHOPHYSICS TOOLBOX QUESTS //

            nQuests = new int[quests.Length];
            factor  = artifactSize.Max();

            activeQuest = NextRandomQuest();
            randomAngle = NextRandomAngle();
        }