Beispiel #1
0
 public static QuestionDatabase GetInstance()
 {
     if (dbInstance == null)
     {
         dbInstance = new QuestionDatabase("../../gameqs.db");
     }
     return(dbInstance);
 }
Beispiel #2
0
        //=====================================================================

        public void MakeEachDoor()
        {
            QuestionDatabase db = QuestionDatabase.GetInstance();
            Question         q  = db.GetQuestion(134);

            this.GetFloor(0).GetRoom(new Point(0, 0)).SetEDoor(new ClosedDoor(q));
            q = db.GetQuestion(115);
            this.GetFloor(0).GetRoom(new Point(0, 1)).SetEDoor(new ClosedDoor(q));
        }
Beispiel #3
0
        public ClosedDoor()
        {
            QuestionDatabase db = QuestionDatabase.GetInstance();

            this.question = db.RandomQuestion();
        }