FreeOrion

Forums for the FreeOrion project
It is currently Sat May 25, 2013 2:38 am

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 49 posts ]  Go to page Previous  1, 2, 3, 4
Author Message
 Post subject:
PostPosted: Mon Jun 21, 2004 1:34 pm 
Offline
Space Kraken

Joined: Tue May 25, 2004 3:15 am
Posts: 157
I'm still in planning phase, but I've seen that the effect of a focus should be an object. But looking at the code, I can't find an Effect class. Also, details of the structure of how an class would become affectable isn't clear: add an member effect list in every affectable class? Maybe a purely virtual affectable class, parent to all affectable classes, that only contains a linked list (or map) of effects (and a static list) would be better (I'd go with that one).

After that is determined, it should be pretty straightforward to add the effect of foci.

Should I post that to the mailing list? I consider myself a bit too green to touch the class hierarchy without any green light! :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 2:52 pm 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
Yes, definitely post to the programmers mailing list before embarking on anything.

Check out the 0.2 specifications for details on how different focuses should affect the game:
http://www.freeorion.org/wiki/index.php ... quirements


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 21, 2004 4:55 pm 
Offline
Programming Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 1:33 pm
Posts: 1092
vishnou00 wrote:
I'm still in planning phase, but I've seen that the effect of a focus should be an object. But looking at the code, I can't find an Effect class. Also, details of the structure of how an class would become affectable isn't clear: add an member effect list in every affectable class? Maybe a purely virtual affectable class, parent to all affectable classes, that only contains a linked list (or map) of effects (and a static list) would be better (I'd go with that one).

After that is determined, it should be pretty straightforward to add the effect of foci.

Should I post that to the mailing list? I consider myself a bit too green to touch the class hierarchy without any green light! :)


Let me know what your design idea is, in broad terms, before implementing it. I have a feeling that a class for focus effects is overkill, but I'll certainly listen with an open mind to whatever you come up with.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 01, 2004 12:29 pm 
Offline
FreeOrion Lead Emeritus
User avatar

Joined: Thu Jun 26, 2003 6:23 am
Posts: 883
Location: Australia
Thread no longer needed. For programming work, please see this thread:
http://www.freeorion.org/forum/viewtopic.php?t=778

Thread locked.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 49 posts ]  Go to page Previous  1, 2, 3, 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group