예제 #1
0
        public Ghost_Controller(Ghost_Blinky Blinky, DispatcherTimer stopwatch, Timer pink_Speed, Timer ghosts)
        {
            inky_seconds        = 0;
            pinky_seconds       = 0;
            blinky_seconds      = 0;
            food_Seconds        = 0;
            dead_pacman_seconds = -1;
            score_500_seconds   = -1;
            game_Over_seconds   = -1;
            this.Blinky         = Blinky;

            this.ghosts     = ghosts;
            this.pink_Speed = pink_Speed;
            this.stopwatch  = stopwatch;
            Timers_Properties();
        }
예제 #2
0
 void instatiate_Ghosts()
 {
     Blinky        = new Ghost_Blinky(Board, control, constraints, walls);
     ghost_control = new Ghost_Controller(Blinky, stopwatch, pink_Timer, ghosts_timer);
 }