|
From: | Paul E. Johnson |
Subject: | Re: [Swarm-Modelling] world getObjectAt |
Date: | Sat, 24 May 2003 16:34:18 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 |
so if you do id someThing = [yourGrid getObjectAtX: x Y: y]; if (someThing != nil) { //tell someThing to do something } Georg A. wrote:
Hello, I am new to swarm and just wanted to know if there is a possibility to get the value of the object that is in position x y at a grid2d with world getObjectAtX: newX Y: newY I get nil if empty but I need the id of the object cheers
-- Paul E. Johnson email: address@hidden Dept. of Political Science http://lark.cc.ukans.edu/~pauljohn University of Kansas Office: (785) 864-9086 Lawrence, Kansas 66045 FAX: (785) 864-5700
[Prev in Thread] | Current Thread | [Next in Thread] |