Class CustomerComponent

java.lang.Object
com.csse3200.game.components.Component
com.csse3200.game.components.npc.CustomerComponent

public class CustomerComponent extends Component
  • Constructor Details

    • CustomerComponent

      public CustomerComponent(BaseCustomerConfig config)
      Constructor for the CustomerComponent
      Parameters:
      config - the configuration for the customer
    • CustomerComponent

      public CustomerComponent(CustomerPersonalityConfig config)
      Constructor for the CustomerComponent
      Parameters:
      config - the configuration for the customer
  • Method Details

    • setOrderNumber

      public void setOrderNumber(String orderNumber)
      Set the order number for the customer
      Parameters:
      orderNumber - the order number
    • getOrderNumber

      public String getOrderNumber()
      Get the order number for the customer
      Returns:
      the order number
    • setReputation

      public void setReputation(int reputation)
      Set the reputation of the customer
      Parameters:
      reputation - the reputation of the customer
    • getReputation

      public int getReputation()
      Get the reputation of the customer
      Returns:
      the reputation of the customer
    • setPatience

      public void setPatience(int patience)
      Set the patience of the customer
      Parameters:
      patience - the patience of the customer
    • getPatience

      public int getPatience()
      Get the patience of the customer
      Returns:
      the patience of the customer
    • setSpawnTimer

      public void setSpawnTimer(int spawnTimer)
      Set the spawn timer for the customer
      Parameters:
      spawnTimer - the spawn timer
    • getSpawnTimer

      public int getSpawnTimer()
      Get the spawn timer for the customer
      Returns:
      the spawn timer
    • setCountDown

      public void setCountDown(int countDown)
      Set the countdown for the customer
      Parameters:
      countDown - the countdown
    • getCountDown

      public int getCountDown()
      Get the countdown for the customer
      Returns:
      the countdown
    • setName

      public void setName(String name)
      Set the name of the customer
      Parameters:
      name - the name of the customer
    • getName

      public String getName()
      Get the name of the customer
      Returns:
      the name of the customer
    • setPreference

      public void setPreference(String preference)
      Set the preference of the customer
      Parameters:
      preference - the preference of the customer
    • getPreference

      public String getPreference()
      Get the preference of the customer
      Returns:
      the preference of the customer
    • getType

      public String getType()
      Get the type of the customer
      Returns:
      the type of the customer