Exemple #1
0
 void RestoreState()
 {
     State = RobotSentinelStates.Walking;
       Scanner = null;
 }
Exemple #2
0
 void Scan()
 {
     State = RobotSentinelStates.Scanning;
       LastScan = Game1.CurrentTime;
       Scanner = new ScanningCircle(new Vector2(DrawBox.Center.X, DrawBox.Bottom), SCANNING_RANGE, SCANNING_SPEED);
 }
Exemple #3
0
 public void PlayerSpottedByScanner(object nothing)
 {
     if (Target != null)
       {
     if (Target.State == Player.PlayerStates.Standing
       || Target.State == Player.PlayerStates.Walking
       || Target.State == Player.PlayerStates.Shooting)
     {
       State = RobotSentinelStates.Attacking;
       Scanner = null;
       LastAttack = Game1.CurrentTime;
     }
       }
 }