[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug report: use of Pixmaps
From: |
Paul E. Johnson |
Subject: |
Re: Bug report: use of Pixmaps |
Date: |
Mon, 05 Apr 1999 10:41:43 -0500 |
"Sven N. Thommesen" wrote:
>
> To get this to work, each agent has the following method, which is invoked
> by the relevant Object2dDisplay object (one such object per raster for each
> agent type):
>
> -drawIconOn: (id <Raster>) r
> {
> [bugPixmap setRaster: r];
> [r draw: bugPixmap X: x Y: y];
> return self;
> }
>
I have agents drawing on two rasters, but I avoided this problem totally
by accident. The agent has two draw methods, one for each raster, and
the observer swarm is told which to use for which raster in the usual
way. Then I don't get the setRaster thing firing off each time through.
Would something like that fix the problem?
--
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
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.