示例#1
0
 public Zombie(Pause pause)
 {
     drop = true;
     pause.Attach(this);
     this.Pause = pause;
     IsPaused   = pause.GetState();
 }
示例#2
0
 public ZombieMaker(IDifficulty difficulty, Pause pause)
 {
     this.difficulty = difficulty;
     pause.Attach(this);
     this.Pause = pause;
     IsPaused   = pause.GetState();
     GameTime   = 1;
 }
示例#3
0
 public PushTracker(Pause pause)
 {
     lock (GameData.PlayerStunnedAccess)
     {
         GameData.Player.IsStunned = true;
     }
     pause.Attach(this);
     this.Pause = pause;
     IsPaused   = pause.GetState();
 }
示例#4
0
        public Bullet(Position playerPosition, Direction direction, Model model, int range, Pause pause)
        {
            isDone         = false;
            clearPrevious  = false;
            bulletPosition = new Position(playerPosition);
            this.direction = direction;
            bulletModel    = model;
            this.range     = range;

            pause.Attach(this);
            this.Pause = pause;
            IsPaused   = pause.GetState();
        }
示例#5
0
 public DropTracker(Pause pause)
 {
     pause.Attach(this);
     this.Pause = pause;
     IsPaused   = pause.GetState();
 }
示例#6
0
 public Mechanics(Pause pause)
 {
     pause.Attach(this);
     this.Pause = pause;
     IsPaused   = pause.GetState();
 }
示例#7
0
 public PlayerStatusTracker(Pause pause)
 {
     pause.Attach(this);
     this.Pause    = pause;
     this.IsPaused = pause.GetState();
 }