LPlatform.StorageType| Constructor and Description |
|---|
LPcPlatform(LPcInstance instance,
LPcMainWindow mainWindow) |
public LPcPlatform(LPcInstance instance, LPcMainWindow mainWindow)
public void init(LPcResourceAccess resourceAccess)
public LColor getColorRed()
getColorRed in interface LPlatformpublic LColor getColorYellow()
getColorYellow in interface LPlatformpublic LColor getColorBlue()
getColorBlue in interface LPlatformpublic LColor getColorGreen()
getColorGreen in interface LPlatformpublic LColor getColorGray()
getColorGray in interface LPlatformpublic LColor getColorBlack()
getColorBlack in interface LPlatformpublic LColor getColorWhite()
getColorWhite in interface LPlatformpublic LColor getCustomColor(int red, int green, int blue)
getCustomColor in interface LPlatformpublic LColor getCustomColor(int alpha, int red, int green, int blue)
getCustomColor in interface LPlatformpublic LImage getImage(LImageResource imageResource) throws Exception
public String getRawResourceAsString(LRawResource rawResource, int index) throws Exception
getRawResourceAsString in interface LPlatformExceptionpublic String getRawResourceName(LRawResource rawResource, int index) throws Exception
getRawResourceName in interface LPlatformExceptionpublic int getRawResourceNumberOfElements(LRawResource rawResource) throws Exception
getRawResourceNumberOfElements in interface LPlatformExceptionpublic LImage createImageFromColorMap(Map<LVector,LColor> colorsMap, LVector size, LColor defaultColor)
createImageFromColorMap in interface LPlatformpublic void setPresenter(LScreenPresenter presenter)
setPresenter in interface LPlatformpublic <K> K readObjectOrNull(LPlatform.StorageType directoryType, String relativePath, Class<K> classType) throws Exception
readObjectOrNull in interface LPlatformExceptionpublic <K> void writeObject(LPlatform.StorageType directoryType, String relativePath, K object) throws Exception
writeObject in interface LPlatformExceptionpublic void writeStringToFile(LPlatform.StorageType directoryType, String relativePath, String string) throws Exception
writeStringToFile in interface LPlatformExceptionpublic void deleteFile(LPlatform.StorageType directoryType, String relativePath) throws Exception
deleteFile in interface LPlatformExceptionpublic void getTextInput(String title, String message, String defaultValue, LTextInputResultListener listener)
getTextInput in interface LPlatformpublic void showMessageDialog(String title, String message)
showMessageDialog in interface LPlatformpublic LFont getFont(LFontResource font) throws Exception
public List<LAnimationFrame> getAnimationFrames(LAnimationResource animationResource) throws Exception
getAnimationFrames in interface LPlatformExceptionpublic LConstants.InputMode getDefaultInputMode()
getDefaultInputMode in interface LPlatformpublic InputStream getInputStreamOrNull(LPlatform.StorageType directoryType, String relativePath)
getInputStreamOrNull in interface LPlatformpublic String getAbsolutePath(LPlatform.StorageType directoryType, String relativePath)
getAbsolutePath in interface LPlatformpublic void handleMissingResourceError(String message)
handleMissingResourceError in interface LPlatformpublic Map<String,LImage> getIdToImageMap() throws Exception
getIdToImageMap in interface LPlatformExceptionpublic Map<String,LFont> getIdToFontMap() throws Exception
getIdToFontMap in interface LPlatformExceptionpublic boolean isExternalDirPermissionGranted()
isExternalDirPermissionGranted in interface LPlatformpublic void showExternalDirPermissionRequest()
showExternalDirPermissionRequest in interface LPlatformpublic String getStringOrNull(LPlatform.StorageType directoryType, String relativePath)
getStringOrNull in interface LPlatformpublic void handleInternalError(Exception e)
handleInternalError in interface LPlatformpublic boolean isBought(LBuyableItem item)
public boolean readIsBoughtFromCache(LBuyableItem item)
readIsBoughtFromCache in interface LPlatformpublic void buyItem(LBuyableItem item)
public void addStatistics(Double fps, Double idleDuration, Double drawDuration, Double updateDuration, Integer levelID, String levelPos, Integer levelRemainingSeconds, String levelState)
addStatistics in interface LPlatformpublic void sendStatisticsIfNotBusy()
sendStatisticsIfNotBusy in interface LPlatformpublic void statisticsSenderFinished(Exception exception)
statisticsSenderFinished in interface LPlatformpublic String getAppVersion()
getAppVersion in interface LPlatformpublic String getSystemType()
getSystemType in interface LPlatformCopyright © 2019 Philip Heyse. All rights reserved.