X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_cave.h;h=d97f280fbcf6c255b7fc836009e429671a8db829;hb=a5625f62fe0e6212c4526637f23fa029f32301e8;hp=1255e5414685c8893908fdacbdc72211a2497946;hpb=e6639d077a1337c4b186ed1238483fcdca5bf529;p=rocksndiamonds.git diff --git a/src/game_bd/bd_cave.h b/src/game_bd/bd_cave.h index 1255e541..d97f280f 100644 --- a/src/game_bd/bd_cave.h +++ b/src/game_bd/bd_cave.h @@ -253,7 +253,7 @@ typedef enum _direction GD_MV_LEFT = 7, GD_MV_UP_LEFT = 8, - /* to be able to type GD_MV_TWICE+GD_MV_DOWN, for example */ + /* to be able to type GD_MV_TWICE + GD_MV_DOWN, for example */ GD_MV_TWICE = 8, /* directions * 2 */ @@ -550,7 +550,13 @@ typedef struct _gd_cave boolean pneumatic_hammer_sound; /* internal variables, used during the game. private data :) */ - GdElement* (*getp) (const struct _gd_cave*, int x, int y); /* returns a pointer to the element at x, y. this points to a perfect border or a line shifting get function. */ + + /* returns range corrected x/y position (points to perfect or line shifting get function) */ + int (*getx) (const struct _gd_cave*, int x, int y); + int (*gety) (const struct _gd_cave*, int x, int y); + + /* returns pointer to element at x, y (points to perfect border or a line shifting get function) */ + GdElement* (*getp) (const struct _gd_cave*, int x, int y); boolean hatched; /* hatching has happened. (timers may run, ...) */ boolean gate_open; /* self-explaining */