Interface TanProperty


public interface TanProperty
  • Method Details

    • getName

      String getName()
      Returns:
      the name of the property
    • getFirstCorner

      org.leralix.lib.position.Vector3D getFirstCorner()
      Returns:
      the first corner of the property
    • getSecondCorner

      org.leralix.lib.position.Vector3D getSecondCorner()
      Returns:
      the second corner of the property
    • getOwner

      TanPlayer getOwner()
      Returns:
      the owner of the property
    • isForSale

      boolean isForSale()
      Returns:
      True if the property is for sale, false otherwise
    • isForRent

      boolean isForRent()
      Returns:
      True if the property is for rent, false otherwise
    • isRented

      boolean isRented()
      Returns:
      True if the property is currently rented, false otherwise
    • getRenter

      Optional<TanPlayer> getRenter()
      Returns:
      the player who is currently renting the property if it is rented, Optional.empty() otherwise
    • getRentPrice

      double getRentPrice()
      Returns:
      the price to rent the property. Even if the property is not for rent every property has a rent price
    • getSalePrice

      double getSalePrice()
      Returns:
      the price to buy the property. Even if the property is not for sale every property has a sale price