Changeset 657 for abuse/trunk/src/game.h
- Timestamp:
- May 15, 2011, 6:22:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/game.h
r643 r657 63 63 class Game 64 64 { 65 public: 66 Game(int argc, char **argv); 67 ~Game(); 68 65 69 private: 66 70 JCFont *fnt; … … 89 93 int state,zoom; 90 94 91 Game(int argc, char **argv);92 ~Game();93 94 95 void step(); 95 96 void show_help(char const *st); … … 106 107 return cache.foret(foretiles[x]); } 107 108 108 void ftile_on(int screenx, int screeny, int32_t &x, int32_t &y);109 void btile_on(int screenx, int screeny, int32_t &x, int32_t &y);109 vec2i GetFgTile(vec2i pos); 110 vec2i GetBgTile(vec2i pos); 110 111 void toggle_delay(); 111 112 void set_delay(int on) { no_delay=!on; } 112 113 void pan(int xv, int yv); 113 114 114 void mouse_to_game(int32_t x, int32_t y, int32_t &gamex, int32_t &gamey, view *v=NULL);115 void game_to_mouse(int32_t gamex, int32_t gamey, view *which, int32_t &x, int32_t &y);116 view *view_in(int mousex, int mousey);115 vec2i MouseToGame(vec2i pos, view *v = NULL); 116 vec2i GameToMouse(vec2i pos, view *v); 117 view *GetView(vec2i pos); 117 118 118 119 int calc_speed();
Note: See TracChangeset
for help on using the changeset viewer.