changeRGB

final Unit changeRGB(GameUnit unit, RGB newRgb)

Unconditionally sets the color of unit to newRgb.

Parameters

unit

The unit to change the color of.

newRgb

The new RGB value.


final Unit changeRGB(GameUnit unit, RGBDelta delta)

Unconditionally adds delta to unit's color.

Parameters

unit

The unit to change the color of.

delta

The RGBDelta to add to unit's color.