Interface VariableTeamComponent<T>

All Known Implementing Classes:
DoubleTeamComponent, IntTeamComponent, MoneyComponent, ScoreComponent

public interface VariableTeamComponent<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(T amount)
    Add the given amount to this variable
    void
    div(T amount)
    Divide this variable by the given amount
    void
    mult(T amount)
    Multiply this variable by the given amount
    void
    sub(T amount)
    Subtract the given amount from this variable
  • Method Details

    • add

      void add(T amount)
      Add the given amount to this variable
      Parameters:
      amount - The amount to add
    • sub

      void sub(T amount)
      Subtract the given amount from this variable
      Parameters:
      amount - The amount to subtract
    • mult

      void mult(T amount)
      Multiply this variable by the given amount
      Parameters:
      amount - The scaler
    • div

      void div(T amount)
      Divide this variable by the given amount
      Parameters:
      amount - The scalar