Fight Engine
Class for processing color-based operations such as attacks and updates.
The specific rules for color interactions are defined by:
so-called base colors, which specify which attack the colors can perform
interaction matrix, which defines how much damage one color deals to another upon attacking.
During the game, actual RGB colors are mapped to the base color closest by some internal metric (currently L1). The damage defined by interaction matrix is also multiplied by a coefficient dependent on the distance between the base color and the actual color.
As the only class that is allowed to perform color updates, this class also stores Tickers that govern units' color update periods.
Parameters
The list of all base colors and their properties.
The matrix that defines damage from one color to another.
Constructors
Types
Methods that must be used instead of their usual FightEngine counterparts if and only if explicitly told to.