Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » FreeStars » The Galaxy (long)
The Galaxy (long) Fri, 26 March 2004 05:04 Go to previous message
Ptolemy is currently offline Ptolemy

 
Commander

Messages: 1008
Registered: September 2003
Location: Finland

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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Freestars Website
Next Topic: FreeStars on SourceForge
Goto Forum:
  


Current Time: Sat Jun 01 15:19:50 EDT 2024