public void goPitFall(int pit) { scientist.Visible = false; elliot.Visible = false; agent.Visible = false; player.setPos(new Point(250, 40)); player.setPitLocation(true); PitFall dePit2 = new PitFall(currentPit, pit); System.Console.Error.WriteLine(dePit2.getNummer()); Piece piece = piecePlaces.getPieceFromPlace(pit); if (piece != null) { dePit2.addPiece(piece); } setCurrentPit(dePit2); header.setZone(10); }
public void goPitFall(int pit) { scientist.Visible = false; elliot.Visible = false; agent.Visible = false; player.setPos(new Point(250, 40)); player.setPitLocation(true); PitFall dePit2 = new PitFall(currentPit, pit); System.Console.Error.WriteLine(dePit2.getNummer()); Piece piece = piecePlaces.getPieceFromPlace(pit); if (piece != null) dePit2.addPiece(piece); setCurrentPit(dePit2); header.setZone(10); }