X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.h;h=3413308c8926cfa395c5ea028f6ee191d49e36a0;hb=cc76b9b12e99bc807966f4e59a4842d3d1ec8b3a;hp=84bd6a38eeed9f47327c5e3da1afd75225a86c78;hpb=c398ca9a4ced4876db53ac5543c936380b762ddd;p=rocksndiamonds.git diff --git a/src/tools.h b/src/tools.h index 84bd6a38..3413308c 100644 --- a/src/tools.h +++ b/src/tools.h @@ -4,7 +4,7 @@ // (c) 1995-2014 by Artsoft Entertainment // Holger Schemel // info@artsoft.org -// http://www.artsoft.org/ +// https://www.artsoft.org/ // ---------------------------------------------------------------------------- // tools.h // ============================================================================ @@ -69,12 +69,12 @@ int getFieldbufferOffsetX_RND(int, int); int getFieldbufferOffsetY_RND(int, int); -int correctLevelPosX_EM(int); -int correctLevelPosY_EM(int); - int getLevelFromScreenX(int); int getLevelFromScreenY(int); +int getScreenFieldSizeX(void); +int getScreenFieldSizeY(void); + void DumpTile(int, int); void DumpTileFromScreen(int, int); @@ -88,6 +88,7 @@ void DrawMaskedBorderToTarget(int); void DrawTileCursor(int); void SetDrawtoField(int); +int GetDrawtoField(void); void RedrawPlayfield(void); void BlitScreenToBitmapExt_RND(Bitmap *, int, int); void BlitScreenToBitmap_RND(Bitmap *); @@ -130,6 +131,7 @@ void FloodFillLevelExt(int, int, int, int, int y, short field[][y], int, int); void SetRandomAnimationValue(int, int); int getGraphicAnimationFrame(int, int); +int getGraphicAnimationFrameXY(int, int, int); void DrawFixedGraphicAnimation(int, int, int); void DrawFixedGraphicAnimationExt(DrawBuffer *, int, int, int, int, int); @@ -149,6 +151,7 @@ void getSizedGraphicSourceExt(int, int, int, Bitmap **, int *, int *, boolean); void getSizedGraphicSource(int, int, int, Bitmap **, int *, int *); void getFixedGraphicSource(int, int, Bitmap **, int *, int *); void getMiniGraphicSource(int, Bitmap **, int *, int *); +void getGlobalAnimGraphicSource(int, int, Bitmap **, int *, int *); void getGraphicSource(int, int, Bitmap **, int *, int *); void DrawGraphic(int, int, int, int); @@ -179,6 +182,8 @@ void DrawLevelFieldThruMask(int, int); void DrawLevelFieldCrumbled(int, int); void DrawLevelFieldCrumbledDigging(int, int, int, int); void DrawLevelFieldCrumbledNeighbours(int, int); +void DrawScreenGraphic(int, int, int, int); +void DrawLevelGraphic(int, int, int, int); void DrawScreenElement(int, int, int); void DrawLevelElement(int, int, int); void DrawScreenField(int, int); @@ -193,7 +198,8 @@ void DrawMiniElement(int, int, int); void DrawMiniElementOrWall(int, int, int, int); void ShowEnvelope(int); -void ShowEnvelopeDoor(char *text, int); +void ShowEnvelopeDoor(char *, int); +void DrawEnvelopeRequestToScreen(int, int); void DrawLevel(int); void DrawSizedLevel(int, int, int, int, int); @@ -221,8 +227,9 @@ void UndrawSpecialEditorDoor(void); void CreateToolButtons(void); void FreeToolButtons(void); -int map_element_RND_to_EM(int); -int map_element_EM_to_RND(int); +int map_element_RND_to_EM_cave(int); +int map_element_EM_to_RND_cave(int); +int map_element_EM_to_RND_game(int); int map_direction_RND_to_EM(int); int map_direction_EM_to_RND(int); @@ -285,10 +292,17 @@ void ResetFontStatus(void); void SetLevelSetInfo(char *, int); -void ToggleFullscreenOrChangeWindowScalingIfNeeded(void); +void ToggleFullscreenIfNeeded(void); +void ChangeWindowScalingIfNeeded(void); +void ChangeVsyncModeIfNeeded(void); void ChangeViewportPropertiesIfNeeded(void); boolean CheckIfAllViewportsHaveChanged(void); boolean CheckFadeAll(void); +void OpenURL(char *); +void OpenURLFromHash(SetupFileHash *, int); + +void TestGeneratingUUIDs(void); + #endif // TOOLS_H