private void checkStatus() { if (dangerLevel <= 5) { stars.Add(new Star(new Vector2(200 + 70 * dangerLevel, 10))); PoliceBoat newBoat = new PoliceBoat(spawnPoint); policeStation.createBoat(newBoat); } }
public Patrolling(PoliceBoat p) { police = p; }
public void createBoat(PoliceBoat p) { this.policeBoats.Add(p); }
public Floating(PoliceBoat p) { police = p; }
public void registerPolice(PoliceBoat p) { registeredBoats.Add(p); }
public void unregisterPolice(PoliceBoat p) { p.setStatus(new Floating()); registeredBoats.Remove(p); }
public Aggressive(PoliceBoat p) { police = p; }