()
| 40 | } |
| 41 | |
| 42 | public canBeBought(): boolean{ // Return true if we can buy the item, else return false |
| 43 | // If it's already bought, we return false |
| 44 | if(this.isBought()) |
| 45 | return false; |
| 46 | |
| 47 | return true; |
| 48 | } |
| 49 | |
| 50 | public canBeClicked(): boolean{ // Return true if you can click on the item, else return false |
| 51 | // If it's already bought, we return false |
no test coverage detected