registerUnit

final Unit registerUnit(GameUnit unit)

Registers unit in this FightEngine.

This includes starting a color Ticker for unit.

Any FightEngine operations involving unregistered units lead to undefined behaviour (most likely, a NullPointerException).

Parameters

unit

The unit to register.