danbuis / ArmadaAIEngineNew

Revisit of an old project to create an AI for Star Wars Armada
1 stars 0 forks source link

Create class for "halfway" ships and squads #87

Closed danbuis closed 2 years ago

danbuis commented 2 years ago

Requirements

Right now the steps to get a squadron on the table are parse file, build Squadron and put in factory instance, request new Squadron, build copy of Squadron.

It would be nice if the interim ship/squadron had its own simple class, basically serving as a data holder. Then when a "real" instance is requested we build the Ship or Squadron instance. This would have the benefit of not needing to preprocess tons of things for entities not being used in a game. Looking specifically at some Hullzone generation logic and maneuver chart stuff coming down the pipeline.

It would also be beneficial because it will separate the concerns or uses of the different constructors and make code a little clearer.

Potential Solutions

A halfway class, maybe recycle ProtoShip.

We could also just make a map of pre-validated values and then reference that (likely with some casting) as we build a real instance.

Potential Tasks

What does it take to call this issue complete?

danbuis commented 2 years ago

Closing this. We no longer need it with the json->object pipeline. We also don't need to parse a skillion lines and then only use some of it.