new ShopItem()
Base class for all items sold in the shop.
- Source:
Classes
Methods
(abstract) getDescription() → {string}
Gets a general description of the item (Polymorphic method).
- Source:
Returns:
The item description.
- Type
- string
getId() → {number}
Gets the unique ID of the item.
- Source:
Returns:
The item's ID.
- Type
- number
isPricy() → {boolean}
Checks if the item is expensive (price > 100).
- Source:
Returns:
True if the price is above 100.
- Type
- boolean