IPenalty Interface
Interface describing classes that can have a penalty applied.
| Penalties |
Get set the list of Penalties. Generally avoid using this function (except for serilaization).
|
| AddPenalty |
Adds the passed in penalty to the list of Penalties
|
| GetPenalties |
Returns the list of Penalties. Same as calling .Penalties
|
| GetSumPenaltyPoints |
Returns the sum of all penalty points.
|
| HasPenalty(Penalty) |
Returns a boolean indicating if the passed in Peanlty is already applied.
|
| HasPenalty(String) |
Returns a boolean indicating if the passed in Peanlty ID exists.
|
| RemovePenalty(Penalty) |
Remove the passed in Penalty. If this penalty is not part of the Peanlties list, no action is applied.
|
| RemovePenalty(String) |
Removes the penalty that has the passed in penaltyID
|
| SetPenalties |
Replaces the existing list of penalties with the passed in list. Same as calling .Penalties = value
|