Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pushAll(cells, [/*1*/
- ((getCellFromXY(getCellX(center) + x, getCellY(center) + y) === null)
- ?
- null
- :
- ((obstacles)
- ?
- getCellFromXY(getCellX(center) + x, getCellY(center) + y)
- :
- ((isObstacle(getCellFromXY(getCellX(center) + x, getCellY(center) + y)))
- ?
- null
- :
- getCellFromXY(getCellX(center) + x, getCellY(center) + y)))),
- /*2*/
- ((getCellFromXY(getCellX(center) - x, getCellY(center) + y) === null)
- ?
- null
- :
- ((obstacles)
- ?
- getCellFromXY(getCellX(center) - x, getCellY(center) + y)
- :
- ((isObstacle(getCellFromXY(getCellX(center) - x, getCellY(center) + y)))
- ?
- null
- :
- getCellFromXY(getCellX(center) - x, getCellY(center) + y)))),
- /*3*/
- ((getCellFromXY(getCellX(center) + x, getCellY(center) - y) === null)
- ?
- null
- :
- ((obstacles)
- ?
- getCellFromXY(getCellX(center) + x, getCellY(center) - y)
- :
- ((isObstacle(getCellFromXY(getCellX(center) + x, getCellY(center) - y)))
- ?
- null
- :
- getCellFromXY(getCellX(center) + x, getCellY(center) - y)))),
- /*4*/
- ((getCellFromXY(getCellX(center) - x, getCellY(center) - y) === null)
- ?
- null
- :
- ((obstacles)
- ?
- getCellFromXY(getCellX(center) - x, getCellY(center) - y)
- :
- ((isObstacle(getCellFromXY(getCellX(center) - x, getCellY(center) - y)))
- ?
- null
- :
- getCellFromXY(getCellX(center) - x, getCellY(center) - y))))];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement