Changeset 682 for abuse/trunk/src/game.h
- Timestamp:
- Sep 12, 2011, 10:17:23 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/src/game.h
r666 r682 107 107 return cache.foret(foretiles[x]); } 108 108 109 vec2i GetFgTile(vec2ipos);110 vec2i GetBgTile(vec2ipos);109 ivec2 GetFgTile(ivec2 pos); 110 ivec2 GetBgTile(ivec2 pos); 111 111 void toggle_delay(); 112 112 void set_delay(int on) { no_delay=!on; } 113 113 void pan(int xv, int yv); 114 114 115 vec2i MouseToGame(vec2ipos, view *v = NULL);116 vec2i GameToMouse(vec2ipos, view *v);117 view *GetView( vec2ipos);115 ivec2 MouseToGame(ivec2 pos, view *v = NULL); 116 ivec2 GameToMouse(ivec2 pos, view *v); 117 view *GetView(ivec2 pos); 118 118 119 119 int calc_speed(); … … 125 125 126 126 127 void PutFg( vec2ipos, int type);128 void PutBg( vec2ipos, int type);127 void PutFg(ivec2 pos, int type); 128 void PutBg(ivec2 pos, int type); 129 129 void draw_map(view *v, int interpolate=0); 130 130 void dev_scroll(); … … 134 134 void set_level(level *nl); 135 135 void show_time(); 136 tile_type GetMapBg( vec2ipos) { return current_level->GetBg(pos); }137 tile_type GetMapFg( vec2ipos) { return current_level->GetFg(pos); }136 tile_type GetMapBg(ivec2 pos) { return current_level->GetBg(pos); } 137 tile_type GetMapFg(ivec2 pos) { return current_level->GetFg(pos); } 138 138 void end_session(); 139 139 void need_refresh() { refresh=1; } // for development mode only
Note: See TracChangeset
for help on using the changeset viewer.