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 Tue, 11 November 2014 16:21 Go to previous messageGo to previous message
skoormit is currently offline skoormit

 
Lieutenant

Messages: 665
Registered: July 2008
Location: Alabama
Shadow Whist wrote on Tue, 11 November 2014 00:39

This weekend I started thinking a bit too hard about the interaction between the Player object, a Player Race design, and a player's fleets.


Maybe it's less ambiguous if the model uses "Race" rather than "Player" to refer to the in-game entity. I.e.:

"Players" create race designs.
The game creation engine, to create a game, requires a race design for each player. (These can all be different, or all the same, etc.)
The game creation engine creates a "Race" for each player, based on the race design for that player.
A Race has
  • a PRT (determined at game creation time from the race design)
  • 0 or more LRTs (determined as above)
  • Hab settings (determined as above)
  • Econ Settings (determined as above)
  • Tech Settings (determined as above)
  • 0+ Fleets
  • 0+ Tech Levels (and 0+ resources of credit toward the next level of each of the 6 research fields)
  • 0-16 Ship Designs
  • 0-16 Starbase Designs
  • Intel: current info on currently scanned objects (planets, fleets, wormholes, salvage, packets, MT), old info on planets previously scanned but not currently scanned, memory of last ship design seen for each enemy ship slot


That approach makes it seem natural that the Race object owns the Fleet objects, rather than the "Game" object, since all fleets have exactly one owner.
(I am considering the MT a space object rather than a fleet. Tomato, tomahto, perhaps.)

Since a planet has 0 or 1 owners, the Game object owns the Planet objects. Races always have current perfect info on Planets that they control. (The Order of Events engine, when it creates the current turn's intel for each Race, knows this.)

Just my top-of-head, back-of-napkin thoughts. Use, discard, ignore, etc., at your preference.



[Updated on: Tue, 11 November 2014 16:21]




What we need's a few good taters.

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 17:25:08 EDT 2024