Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Stars Core Engine
Re: Stars Core Engine Wed, 12 November 2014 03:05 Go to previous messageGo to previous message
Shadow Whist is currently offline Shadow Whist

 
Chief Warrant Officer 2

Messages: 167
Registered: August 2003
Location: Vancouver, WA
In the current structure, the game object holds all the other objects. Its like the root node of a tree (i.e. data structure).

Player Object:
It appears the way I am thinking of using the Player object is similar to the way you describe the Race object.

Fleets:
My original thought was that a Universe Object held all the Space Objects located inside. And the Player Object held the other player related stuff that was not a Space Object.
Now I am leaning toward the Player Object holding its fleets and the Universe Object having a dictionary where:

  • key = (x,y) coordinates
  • value = list of fleet id numbers at that respective (x,y) location. (all object will need a unique id, separate from player visible id)



BTW - in the stars_engine_core_structure link posted earlier there is a purple box. Inside describes the space object hierarchy and a rough inheritance structure.

Colonized Planets:
Colonized planet objects will be stored in the Player Object. Each Colonized planet will 'point' to the respective planet object. A Colonized planet will not inherit from Planet or Space Object - it will just use the existing values.

Thanks for the thoughts!
SW

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 icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Should Stars! files structures be publically available?
Next Topic: Stars! github organization
Goto Forum:
  


Current Time: Mon May 06 19:20:22 EDT 2024