Re: How to see if an object is part of a specific vector?



caleb wrote:

>Johan I'm not sure what you're saying but I'm sure what I'm doing
>probably isn't the best way. See the thing is, a is part of Vector
>aliens but aliens also contains ufos and smartAliens which both have
>different sizes.

Yes, I understand that they have different size. But the things you
are doing now to get the size is unnecessary, and not even very
precise. Try to really _look_ at your code. Follow the flow of
execution, line by line. Think about which methods it is you are
calling, on which objects.


--
Johan Utne Poppe
.