This site requires JavaScript, please enable it in your browser!
Greenfoot back
bogaboy
bogaboy wrote ...

2013/5/16

getNeighbours method

bogaboy bogaboy

2013/5/16

#
I am working on my greeps, and need help using this method. If I want to search for a greep, what goes in the parenthesis in the third spot. EX. if(getNeighbours(5,true,java.lang.????????).size()!=0)
guigowls guigowls

2013/5/16

#
the documentation explains it in the reference booklet. good luck
davmac davmac

2013/5/17

#
getNeighbours(...) is intended for low-granularity cell-based scenarios - it's not so useful with Greeps. Try the other collision checking methods.
You need to login to post a reply.