Home » Stars! Clones, Extensions, Modding » FreeStars » The Galaxy (long)
The Galaxy (long) |
Fri, 26 March 2004 05:04 |
|
|
As I look at all we are doing, I would like to suggest a galaxy modification that adds a little more reality than we currently have in Stars!. This doesn't change any major functionality for turn processing but modifies the way that we represent planets and define our waypoints.
With the current code, we use a simple x,y definition for planets. What I would like to do is use x,y,z where x,y defines the star and z defines the planet in that solar system. When waypoints are selected, the star system and planet are selected. Effectively, this means that we have no galaxy clumping since a given star will contain from 1 to x planets (I recommend a maximum of 5).
Here's what we have now:
class Galaxy {
public:
bool ParseNode(const TiXmlNode * node);
void WriteNode(TiXmlNode * node) const;
Planet * GetPlanet(int posX, int posY);
Planet * GetPlanet(const Location * loc) { return GetPlanet(loc->GetPosX(), loc->GetPosX()); }
Planet * GetPlanet(const char * name);
And here is what I would like to use:
class Galaxy {
public:
bool ParseNode(const TiXmlNode * node);
void WriteNode(TiXmlNode * node) const;
Planet * GetPlanet(int posX, int posY, int posz);
Planet * GetPlanet(const Location * loc) { return GetPlanet(loc->GetPosX(), loc->GetPosX(),loc->GetPosZ()); }
Planet * GetPlanet(const char * name);
Here, loc becomes x,y,z.
As a graphical example of what we then see for our universe on the screen we have something like this:
[img]http://koti.welho.com/esmith/whsmith/images/galaxy.gif[/img]
Our universe definition then uses a format similar to this:
Galaxy
Star, Name = 'Andromeda', Location(x),(y)
Planets(3) ;=z
'Earth' (grav,temp,rad,iron,bor,germ), Image = random([planetpic]),(color)
'Venus' (grav,temp,rad,iron,bor,germ), Image = random([planetpic]),(color)
'Pluto' (grav,temp,rad,iron,bor,germ), Image = random([planetpic]),(color)
Star, Name = 'Cassiopeia', Location(x),(y)
Planets(2) ;=z
'Gaia' (grav,temp,rad,iron,bor,germ), Image = random([planetpic]),(color)
'Fontaine' (grav,temp,rad,iron,bor,germ), Image = random([planetpic]),(color)
etc. - for the number of stars & planets in the galaxy
When we select a waypoint, we select the star and planet. HOWEVER, fleets travelling more than 1 light year to get to a planet will STOP 1ly from the star then enter the planet orbit the following turn. What we do want to do is create battles in space and at planets.
Ptolemy
[Updated on: Fri, 26 March 2004 06:58]
Though we often ask how and why, we must also do to get the answers to the questions.Report message to a moderator
|
|
|
|
|
The Galaxy (long)
By: Ptolemy on Fri, 26 March 2004 05:04
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 26 March 2004 06:24
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 26 March 2004 06:37
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Fri, 26 March 2004 06:44
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 26 March 2004 08:26
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Fri, 26 March 2004 10:13
|
|
|
Re: The Galaxy (long)
By: Orca on Fri, 26 March 2004 11:10
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 26 March 2004 11:13
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Fri, 26 March 2004 13:00
|
|
|
Re: The Galaxy (long)
By: LEit on Fri, 26 March 2004 20:46
|
|
|
Re: The Galaxy (long)
By: mazda on Fri, 26 March 2004 06:26
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Fri, 26 March 2004 06:42
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Sat, 27 March 2004 04:05
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Sat, 27 March 2004 12:14
|
|
|
Re: The Galaxy (long)
By: Strat on Sat, 27 March 2004 16:55
|
|
|
Re: The Galaxy (long)
By: Kotk on Mon, 29 March 2004 08:35
|
|
|
Re: The Galaxy (long)
By: Staz on Mon, 29 March 2004 09:26
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Orca on Thu, 01 April 2004 23:07
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Fri, 02 April 2004 13:41
|
|
|
Re: The Galaxy (long)
By: multilis on Sat, 03 April 2004 13:57
|
|
|
Re: The Galaxy (long)
By: craebild on Sun, 04 April 2004 01:18
|
|
|
Re: The Galaxy (long)
By: LEit on Sun, 04 April 2004 20:31
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Tue, 06 April 2004 05:55
|
|
|
Re: The Galaxy (long)
By: Kotk on Tue, 06 April 2004 12:45
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Tue, 06 April 2004 14:25
|
|
|
Re: The Galaxy (long)
By: LEit on Wed, 07 April 2004 17:24
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 21 May 2004 06:46
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: LEit on Mon, 24 May 2004 10:11
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: iztok on Mon, 24 May 2004 02:07
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: multilis on Wed, 07 April 2004 22:01
|
|
|
Re: The Galaxy (long)
By: Strat on Wed, 07 April 2004 22:08
|
|
|
Re: The Galaxy (long)
By: Ptolemy on Thu, 08 April 2004 00:16
|
|
|
Re: The Galaxy (long)
By: Strat on Thu, 08 April 2004 00:26
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: LEit on Fri, 21 May 2004 09:40
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Kotk on Fri, 21 May 2004 15:07
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Kotk on Sat, 22 May 2004 01:07
|
|
|
Re: The Galaxy (long)
|
|
|
Re: The Galaxy (long)
By: Coyote on Sat, 22 May 2004 02:24
|
|
|
Re: The Galaxy (long)
By: Kotk on Sat, 22 May 2004 02:36
|
|
|
Re: The Galaxy (long)
|
Goto Forum:
Current Time: Sat Jun 01 15:19:50 EDT 2024
|