Пример #1
0
 private void checkStatus()
 {
     if (dangerLevel <= 5)
     {
         stars.Add(new Star(new Vector2(200 + 70 * dangerLevel, 10)));
         PoliceBoat newBoat = new PoliceBoat(spawnPoint);
         policeStation.createBoat(newBoat);
     }
 }
Пример #2
0
 public Patrolling(PoliceBoat p)
 {
     police = p;
 }
Пример #3
0
 public void createBoat(PoliceBoat p)
 {
     this.policeBoats.Add(p);
 }
Пример #4
0
 public Floating(PoliceBoat p)
 {
     police = p;
 }
Пример #5
0
 public void registerPolice(PoliceBoat p)
 {
     registeredBoats.Add(p);
 }
Пример #6
0
 public void unregisterPolice(PoliceBoat p)
 {
     p.setStatus(new Floating());
     registeredBoats.Remove(p);
 }
Пример #7
0
 public Aggressive(PoliceBoat p)
 {
     police = p;
 }