• Welcome to the new COTI server. We've moved the Citizens to a new server. Please let us know in the COTI Website issue forum if you find any problems.
  • We, the systems administration staff, apologize for this unexpected outage of the boards. We have resolved the root cause of the problem and there should be no further disruptions.

Shipyard5j

robject

SOC-14 10K
Admin Award
Marquis
With my Trader engine at a stable point, and my FlashBuilder-based T5 Shipyard showing distinct signs of end-of-life, I'm starting another project for a Shipyard, T5 edition, in Java.

https://github.com/bobbyjim/Shipyard5j

I decided to start simple, and build in small increments. The initial check-in is trivial indeed: its entire function is to simply parse a JSON ship design from the T5Shipyard, then re-stringify and print to stdout.

Being able to read in the output of the previous shipyard is critical for me to be able to work with existing designs. I do not want to have to re-do them!
 
I've also started fleshing out the data objects representing a ship. Designs don't have to have all of the details I'm adding, but some of them have it, so I want to support it.

This is very much a MOARN thing. If I'm simply designing a free trader, a lot of elements will be missing or default.

The next step is to populate these data structures from an existing shipyard design file.
 
Implemented reading the header into a Ship object, via a Builder.

Next up, smoothing the edges of the read, and reading in the component list.
 
OK, component list is mostly read in. I created enums for Stage, Range, and Mount, so I will need custom code to map those.
 
Back
Top