Module politburo::design_complexity
source · Expand description
Design/Program complexity
-
We use the
heapless::Vec
array type to store a fixed number ofActionCard
s for the player in thePlayer
type -
We use the
heapless::Vec
array type to store a fixed number ofPlayer
s in theSituationTable
type -
We’re going to use a separate program to design and create a file for the
ActionCard
s and theSituationCard
s, which will be loaded when the game begins. -
The
ecs
is going to be managing our objects as data records -
Every object marked with
Resource
orComponent
can be a record stored by the engine -
We’re going to need to search for
ActionCard
s andSituationCard
s in an array that we load from a file in order to be able to use them. -
ActionCard
s specifically will also have an associatedCardType
which will need to be taken into account during the search -
Selection statements such as
match
will be used all over our codebase to select things based on associated data such asPosition
s -
We’re going to sort the
ActionCard
s in thePlayer
s hand by it’s influence cost -
User defined methods are everywhere in this codebase, most of which interact with the
ecs
-
User defined objects are also everywhere, and will be used to build the
Component
s andResource
s the game will need to exist