These sample classes don't actually do anything useful, they just provide some examples of how DeltaAttributes and DeltaMonitors are used.
Classes | |
class | AirCraft |
In this example class we have three variables that are used to compute the effective lift. Since the effective lift computation is potentially expensive, we don't want to perform it every single update. So we use the DeltaAttributes to check for a change in the factor used to determine the effective lift. Only when one of these factors has changed, do we need to recompute the effective lift. If the factors don't change, the effective lift will remain constant, so we have no need to recompute. | |
class | Atmosphere |