public interface LPlatform
| Modifier and Type | Interface and Description |
|---|---|
static class |
LPlatform.StorageType |
void buyItem(LBuyableItem item)
boolean isBought(LBuyableItem item)
boolean readIsBoughtFromCache(LBuyableItem item)
LColor getColorRed()
LColor getColorYellow()
LColor getColorBlue()
LColor getColorGreen()
LColor getColorGray()
LColor getColorBlack()
LColor getColorWhite()
LColor getCustomColor(int red, int green, int blue)
LColor getCustomColor(int alpha, int red, int green, int blue)
LImage getImage(LImageResource imageResource) throws Exception
ExceptionList<LAnimationFrame> getAnimationFrames(LAnimationResource animationResource) throws Exception
ExceptionLFont getFont(LFontResource font) throws Exception
ExceptionString getRawResourceAsString(LRawResource rawResource, int index) throws Exception
Exceptionint getRawResourceNumberOfElements(LRawResource rawResource) throws Exception
ExceptionString getRawResourceName(LRawResource rawResource, int index) throws Exception
ExceptionLLogger getLogger()
void setPresenter(LScreenPresenter presenter)
LImage createImageFromColorMap(Map<LVector,LColor> colorsMap, LVector size, LColor defaultColor)
<K> K readObjectOrNull(LPlatform.StorageType directoryType, String relativePath, Class<K> classType) throws Exception
Exception<K> void writeObject(LPlatform.StorageType directoryType, String relativePath, K object) throws Exception
Exceptionvoid writeStringToFile(LPlatform.StorageType directoryType, String relativePath, String string) throws Exception
Exceptionvoid deleteFile(LPlatform.StorageType directoryType, String relativePath) throws Exception
ExceptionInputStream getInputStreamOrNull(LPlatform.StorageType directoryType, String relativePath)
void getTextInput(String title, String message, String defaultValue, LTextInputResultListener listener)
LConstants.InputMode getDefaultInputMode()
String getStringOrNull(LPlatform.StorageType directoryType, String relativePath)
String getAbsolutePath(LPlatform.StorageType directoryType, String relativePath)
void handleMissingResourceError(String message)
void quit()
boolean isExternalDirPermissionGranted()
void showExternalDirPermissionRequest()
void addStatistics(Double fps, Double idleDuration, Double drawDuration, Double updateDuration, Integer levelID, String levelPos, Integer levelRemainingSeconds, String levelState)
void sendStatisticsIfNotBusy()
void statisticsSenderFinished(Exception exception)
String getAppVersion()
String getSystemType()
void handleInternalError(Exception e)
void sendEMail(String eMailAddress)
Copyright © 2019 Philip Heyse. All rights reserved.