Re: Static Members?


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Amit Nithian on April 15, 2001 at 20:52:16:

In Reply to: Static Members? posted by Tyler Woods on April 15, 2001 at 17:58:25:

: If we decided to store a pointer in each creature to its ecosystem, could this be a static pointer? I assume we aren't running simulations on multiple ecosystems (at least not for this project) and I was thinking that it would simplify the interface (not having to pass a pointer to the ecosystem object each time we make a new creature). I could work a way around this if I really wanted to but I was just curious if we could do it that way. Besides, a creature isn't "assigned" an ecosystem, he's born with it already there.... right? Just my thoughts and questions.

: Tyler

I thought about a static member, but I decided to simply pass in the ecosystem pointer to each creature created.. although I don't like this and would like to know if this is a good design method.

Thanks
Amit Nithian




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]