rnd-20061028-1-src
[rocksndiamonds.git] / src / tools.h
index 10b4890bd1310656f6925a1b7ff9fe43990d11ef..1aab5d3244ae971678b1c35b0ee3fee3b5866d65 100644 (file)
@@ -1,7 +1,7 @@
 /***********************************************************
 * Rocks'n'Diamonds -- McDuffin Strikes Back!               *
 *----------------------------------------------------------*
-* (c) 1995-2002 Artsoft Entertainment                      *
+* (c) 1995-2006 Artsoft Entertainment                      *
 *               Holger Schemel                             *
 *               Detmolder Strasse 189                      *
 *               33604 Bielefeld                            *
@@ -46,8 +46,9 @@
 #define DOOR_COPY_BACK         (1 << 4)
 #define DOOR_NO_COPY_BACK      (1 << 5)
 #define DOOR_NO_DELAY          (1 << 6)
-#define DOOR_GET_STATE         (1 << 7)
-#define DOOR_SET_STATE         (1 << 8)
+#define DOOR_FORCE_REDRAW      (1 << 7)
+#define DOOR_GET_STATE         (1 << 8)
+#define DOOR_SET_STATE         (1 << 9)
 
 /* for Request */
 #define REQ_ASK                        (1 << 0)
 
 void DumpTile(int, int);
 
+void DrawMaskedBorder_FIELD();
+void DrawMaskedBorder_DOOR_1();
+void DrawMaskedBorder_DOOR_2();
+void DrawMaskedBorder_DOOR_3();
+void DrawMaskedBorder_ALL();
+void DrawMaskedBorder(int);
+
 void SetDrawtoField(int);
 void RedrawPlayfield(boolean, int, int, int, int);
 void BackToFront();
@@ -68,13 +76,17 @@ void FadeToFront();
 
 void FadeIn(int);
 void FadeOut(int);
-void FadeCross(Bitmap *, int);
+void FadeCross(int);
+void FadeCrossSaveBackbuffer();
 
 void ClearWindow();
 void SetMainBackgroundImageIfDefined(int);
 void SetMainBackgroundImage(int);
 void SetDoorBackgroundImage(int);
+void SetPanelBackground();
 void DrawBackground(int, int, int, int);
+void DrawBackgroundForFont(int, int, int, int, int);
+void DrawBackgroundForGraphic(int, int, int, int, int);
 
 void MarkTileDirty(int, int);
 void SetBorderElement();
@@ -123,11 +135,9 @@ void DrawMiniElementOrWall(int, int, int, int);
 
 void ShowEnvelope();
 
-void getMicroGraphicSource(int, Bitmap **, int *, int *);
-void DrawMicroElement(int, int, int);
 void DrawLevel(void);
 void DrawMiniLevel(int, int, int, int);
-void DrawMicroLevel(int, int, boolean);
+void DrawPreviewLevel(boolean);
 
 void WaitForEventToContinue();
 boolean Request(char *, unsigned int);
@@ -164,4 +174,11 @@ int font2baseimg(int);
 unsigned int InitRND(long);
 void InitGraphicInfo_EM(void);
 
+void PlayMenuSound();
+void PlayMenuSoundStereo(int, int);
+void PlayMenuSoundIfLoop();
+void PlayMenuMusic();
+
+void ToggleFullscreenIfNeeded();
+
 #endif /* TOOLS_H */