Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. for (x <- 0 until this.width;y <- 0 until this.height) {
  2.  
  3. if (eventCoords.contains(x, y))
  4. {
  5. this.update(new Coords(x, y), new Floor(new Coords(x,y), counter,Some(tapahtumalista.monsterit(laskuri))))
  6. laskuri+=1
  7. }
  8.  
  9. else if (floorCoords.contains(x, y))
  10. {
  11. this.update(new Coords(x, y), new Floor(new Coords(x,y), counter,None))
  12. }
  13.  
  14. else
  15. {
  16. this.update(new Coords(x, y), new Wall(new Coords(x,y), counter))
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement