package greenfoot.platforms;

import greenfoot.GreenfootImage;
import greenfoot.UserInfo;
import threadchecker.OnThread;
import threadchecker.Tag;

import java.awt.Component;
import java.net.URL;
import java.util.List;


| Interface to classes that contain specialized behaviour for the GreenfootUtil | class depending on where and how the greenfoot project is running. | | @author Poul Henriksen | @OnThread(Tag.Simulation) public interface GreenfootUtilDelegate {
| Get some resource from the project, specified by a relative path. | @OnThread(Tag.Any) public URL getResource(String path);
| Gets a list of sound files (as plain names, e.g. "foo.wav") that |* accompany this scenario. For the IDE version, this scans the filesystem, * and for the standalone version it looks at a list that's included * in the exported JAR. * <p> * The return value will not be null, but it may have no contents if there | was an error (e.g. problem reading the directory/JAR, or no list of sounds in the JAR) | and you should not rely on it being accurate (e.g. if files were just added/removed in the sounds directory, | or the JAR has been modified since export). | @OnThread(Tag.Any) public Iterable getSoundFiles();
| Get the project-relative path of the Greenfoot logo. | @OnThread(Tag.Any) public String getGreenfootLogoPath();
| Find out whether storage is supported in the current setting | public boolean isStorageSupported();
| Null if an error or not supported, blank values if no previous storage | public UserInfo getCurrentUserInfo();
| Returns whether it was successful | public boolean storeCurrentUserInfo(UserInfo data);
| Null if problem, empty list if simply no data | | Returns highest data when sorted by integer index 0 | public List getTopUserInfo(int limit);
| Returns null if storage not supported or if there was an error. | public GreenfootImage getUserImage(String userName);
| Returns null if storage is not supported (or there was an error) | public String getUserName();
| Null if problem, empty list if simply no data. | | Returns data near the current player when sorted by integer index 0 | public List getNearbyUserInfo(int maxAmount); }
top, use, map, interface GreenfootUtilDelegate

.   getResource
.   getSoundFiles
.   getGreenfootLogoPath
.   isStorageSupported
.   getCurrentUserInfo
.   storeCurrentUserInfo
.   getTopUserInfo
.   getUserImage
.   getUserName
.   getNearbyUserInfo




55 neLoCode + 18 LoComm