swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help


From: Anne-Marie Meyer
Subject: Re: help
Date: Thu, 9 Aug 2001 08:30:44 +0200

Thanks for you answer but I still can't solve my problem.

Despite the fact that I had really imported WrappedListGrid2d.h in Agent.h, the error was always the same.

Here is the complete file Agent.h :

//Agent.h 13/7/2001

#import <space.h>
#import <gui.h>
#import "WrappedListGrid2d.h"
#import "House.h"

int pplPerCell;
id observerSwarm, modelSwarm;

@interface Agent: SwarmObject
{
int x,y;
int valueHere;
WrappedListGrid2d *homeGrid;
int worldXSize, worldYSize;
int agent_time;
int bestValue;
id h;
House *aHouse;
Color agentColor;
int newHouseAge;
id <List> list;
id <List> safetyList;
}

+(void) setPplPerCell: (int) t;
+(void) setObserverSwarm: observer;
+getObserverSwarm;
+(void) setModelSwarm: (id) model;
-createEnd;
-init;
-setHomeGrid;
-setHomeX: (int) inX Y: (int) inY;
-setHouse: (House *) aHouse;
-chooseLocation;
-searchNeighborhoodDX: (int *)a DY: (int *)b Rad: (int) radius;
-(double) evalCellX: (int) inx Y: (int) iny Max: (int) max;
-(id) getHouse;
-drawSelfOn: (id <Raster>) r;

@end


Anne-Marie


Is WrappedListGrid2d.h imported in Agent.h? I bet not.

Anne-Marie Meyer wrote:
>
> Could anyone help me fix this error, please ?
>
> In file included from ModelSwarm.h:9:
> Agent.h:18: parse error before 'WrappedListGrid2d'
> Agent.h:36: parse error before 'WrappedListGrid2d'
>
> My file Agent.h looks like this :
>
> ...
> int valueHere;
> WrappedListGrid2d *homeGrid;
> int worldXSize, worldYSize;
> ...
> -init;
> -setHomeGrid: (WrappedListGrid2d *) h;
> -setHomeX: (int) inX Y: (int) inY;
> ...
>
> I don't understand the error message. I don't know if there's some
> mistake with the syntax.
>
> Thanks !
>
> ------------------------------------
> Anne-Marie Meyer

--
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]