X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_mm%2Fmm_tools.h;h=d6679de56b0932058a9c3645d95501227cd5331c;hb=f11f733c9a676d117a70ce117b4ecc3cfdb16be9;hp=39c58a8b5ed1d747679d3fd8dd72f3054577afb8;hpb=8cef7dc31f5b96c492079d59acab2cb1587b3c8c;p=rocksndiamonds.git diff --git a/src/game_mm/mm_tools.h b/src/game_mm/mm_tools.h index 39c58a8b..d6679de5 100644 --- a/src/game_mm/mm_tools.h +++ b/src/game_mm/mm_tools.h @@ -1,38 +1,32 @@ -/*********************************************************** -* Mirror Magic -- McDuffin's Revenge * -*----------------------------------------------------------* -* (c) 1994-2001 Artsoft Entertainment * -* Holger Schemel * -* Detmolder Strasse 189 * -* 33604 Bielefeld * -* Germany * -* e-mail: info@artsoft.org * -*----------------------------------------------------------* -* tools.h * -***********************************************************/ +// ============================================================================ +// Mirror Magic -- McDuffin's Revenge +// ---------------------------------------------------------------------------- +// (c) 1994-2017 by Artsoft Entertainment +// Holger Schemel +// info@artsoft.org +// https://www.artsoft.org/ +// ---------------------------------------------------------------------------- +// mm_tools.h +// ============================================================================ #ifndef MM_TOOLS_H #define MM_TOOLS_H #include "main_mm.h" -/* for SetDrawtoField */ -#define DRAW_DIRECT 0 -#define DRAW_BUFFERED 1 -#define DRAW_BACKBUFFER 2 -/* for DrawElementShifted */ +// for DrawElementShifted #define NO_CUTTING 0 #define CUT_ABOVE (1 << 0) #define CUT_BELOW (1 << 1) #define CUT_LEFT (1 << 2) #define CUT_RIGHT (1 << 3) -/* for masking functions */ +// for masking functions #define NO_MASKING 0 #define USE_MASKING 1 -/* for MoveDoor */ +// for MoveDoor #define DOOR_OPEN_1 (1 << 0) #define DOOR_OPEN_2 (1 << 1) #define DOOR_CLOSE_1 (1 << 2) @@ -46,7 +40,7 @@ #define DOOR_NO_DELAY (1 << 5) #define DOOR_GET_STATE (1 << 6) -/* for Request */ +// for Request #define REQ_ASK (1 << 0) #define REQ_OPEN (1 << 1) #define REQ_CLOSE (1 << 2) @@ -54,47 +48,32 @@ #define REQ_STAY_CLOSED (1 << 4) #define REQ_STAY_OPEN (1 << 5) -#define REQUEST_WAIT_FOR (REQ_ASK | REQ_CONFIRM) - -/* font types */ -#define FS_SMALL 0 -#define FS_BIG 1 -#define FS_MEDIUM 2 - void SetDrawtoField_MM(int); -void BackToFront(); -void FadeToFront(); -void ClearWindow(); +void BackToFront(void); +void FadeToFront(void); +void ClearWindow(void); void MarkTileDirty(int, int); void DrawAllPlayers_MM(void); void DrawPlayerField_MM(int, int); void DrawPlayer_MM(struct PlayerInfo *); -void DrawGraphicAnimationExt_MM(int, int, int, int, int, int, int); -void DrawGraphicAnimation_MM(int, int, int, int, int, int); -void DrawGraphicAnimationThruMask_MM(int, int, int, int, int, int); +void DrawGraphicAnimation_MM(int, int, int, int); void DrawGraphic_MM(int, int, int); void DrawGraphicExt_MM(DrawBuffer *, int, int, int); -void DrawGraphicThruMask_MM(int, int, int); -void DrawGraphicThruMaskExt_MM(DrawBuffer *, int, int, int); +void DrawGraphicThruMask_MM(int, int, int, int); +void DrawGraphicThruMaskExt_MM(DrawBuffer *, int, int, int, int); void DrawMiniGraphic_MM(int, int, int); void getMiniGraphicSource(int, Bitmap **, int *, int *); void DrawMiniGraphicExt_MM(DrawBuffer *, int, int, int); void DrawGraphicShifted_MM(int, int, int, int, int, int, int); -void DrawGraphicShiftedThruMask_MM(int, int, int, int, int, int); void DrawScreenElementExt_MM(int, int, int, int, int, int, int); void DrawLevelElementExt_MM(int, int, int, int, int, int, int); void DrawScreenElementShifted_MM(int, int, int, int, int, int); -void DrawLevelElementShifted_MM(int, int, int, int, int, int); -void DrawScreenElementThruMask_MM(int, int, int); -void DrawLevelElementThruMask_MM(int, int, int); -void DrawLevelFieldThruMask_MM(int, int); void ErdreichAnbroeckeln(int, int); void DrawScreenElement_MM(int, int, int); -void DrawLevelElement_MM(int, int, int); void DrawScreenField_MM(int, int); void DrawLevelField_MM(int, int); void DrawMiniElement_MM(int, int, int); @@ -102,24 +81,25 @@ void DrawMiniElementOrWall_MM(int, int, int, int); void DrawField_MM(int, int); void DrawLevel_MM(void); +void DrawLaser_MM(void); void DrawElement_MM(int, int, int); void DrawWallsExt_MM(int, int, int, int); void DrawWalls_MM(int, int, int); void DrawWallsAnimation_MM(int, int, int, int, int); -void DrawMiniLevel_MM(int, int, int, int); void DrawMicroLevel_MM(int, int, boolean); +void DrawTileCursor_MM(int, boolean); boolean Request(char *, unsigned int); unsigned int OpenDoor(unsigned int); unsigned int CloseDoor(unsigned int); unsigned int GetDoorState(void); unsigned int MoveDoor(unsigned int); -void DrawSpecialEditorDoor_MM(); -void UndrawSpecialEditorDoor(); +void DrawSpecialEditorDoor_MM(void); +void UndrawSpecialEditorDoor(void); Pixel ReadPixel(DrawBuffer *, int, int); void SetRGB(unsigned int, unsigned short, unsigned short, unsigned short); -void CreateToolButtons(); +void CreateToolButtons(void); int get_base_element(int); int get_element_phase(int);