Esempio n. 1
0
        /*NOTE: the rest of sound will be implemented when the other classes are implemented
         * Many sounds cannot be added without other features of the game (bats, the wumpus, etc.)
         */

        // GameControl Constructor - launches a new game
        public GameControl()
        {
            //this.player = new Player("Player", cave, map);
            this.cave   = new Cave("cave");
            this.sound  = new Sound();
            this.trivia = new Trivia();
        }
Esempio n. 2
0
 private void construct_objects_Click(object sender, EventArgs e)
 {
     Cave        cave      = new Cave();
     GameControl game      = new GameControl();
     HighScore   highScore = new HighScore(0);
     Trivia      trivia    = new Trivia();
     UI          ui        = new UI();
 }
Esempio n. 3
0
 public Player(String player, Cave cave, Map map)
 {
     //Constructor for a score object.
     //Will be called by Game Control
     this.map        = map;
     this.playerName = player;
     this.arrows     = 3;
     this.gold       = 0;
     this.goldMap    = 100;
     this.turns      = 0;
     this.score      = 130;
     this.cave       = cave;
     this.questions  = new Trivia();
 }
Esempio n. 4
0
 //Constructor for a Player object.
 //Will be called by Game Control to initialize a Player
 public Player(String player, Cave cave, Map map)
 {
     this.map          = map;
     this.playerName   = player;
     this.arrows       = 3;
     this.gold         = 0;
     this.goldMap      = 100;
     this.turns        = 0;
     this.score        = 130;
     this.cave         = cave;
     this.questions    = new Trivia();
     this.numRight     = 0;
     this.numQuestions = 0;
 }