glob2-devel
[Top][All Lists]
Advanced

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

Re: [glob2-devel] Map::getBuilding and flags


From: Stéphane Magnenat
Subject: Re: [glob2-devel] Map::getBuilding and flags
Date: Fri, 7 Jul 2006 23:22:42 +0200
User-agent: KMail/1.9.3

On Friday 07 July 2006 23:20, Bradley Arsenault wrote:
> On 7/7/06, Stéphane Magnenat <address@hidden> wrote:
> > Flags are virtual buildings that do not take any room in the map. They
> > are only referenced by their posX, posY. The flag in BuildingType
> > allowing this is "isVirtual".
> >
> > Steph
>
> So if I want to look for flags, the only way I can is to look it up in
> Team::myBuildings? Ok, thanks.

Yes, although team might have a std::list<Building*> containing all virtual 
buildings. If this list exists, it is for optimisation to allow fast scanning 
of alél virtual buildings.

Steph

-- 
http://nct.ysagoon.com




reply via email to

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