Inaccessible reason
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Function Syntax
string inaccessible_reason(coinmaster master )
- master is the coinmaster to check
Returns a sentence explaining why master is currently unavailable. If master is available, then it returns an empty string.
Code Sample
Check if a coinmaster is available and if not, explains why.
boolean check(coinmaster master) {
if(is_accessible(master))
return true;
print(master+ " is not accesible! "
+ inaccessible_reason(master));
return false;
}