Ignore:
Timestamp:
May 16, 2011, 2:37:11 AM (11 years ago)
Author:
Sam Hocevar
Message:

game: refactor the GetFg? methods to use vec2i.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/game.h

    r657 r666  
    125125
    126126
    127   void put_fg(int x, int y, int type);
    128   void put_bg(int x, int y, int type);
     127    void PutFg(vec2i pos, int type);
     128    void PutBg(vec2i pos, int type);
    129129  void draw_map(view *v, int interpolate=0);
    130130  void dev_scroll();
    131   void put_block_fg(int x, int y, TransImage *im);
    132   void put_block_bg(int x, int y, image *im);
    133 
    134131
    135132  int in_area(Event &ev, int x1, int y1, int x2, int y2);
     
    137134  void set_level(level *nl);
    138135  void show_time();
    139   tile_type get_map_bg(int x, int y) { return current_level->get_bg(x,y); }
    140   tile_type get_map_fg(int x, int y) { return current_level->get_fg(x,y); }
     136    tile_type GetMapBg(vec2i pos) { return current_level->GetBg(pos); }
     137    tile_type GetMapFg(vec2i pos) { return current_level->GetFg(pos); }
    141138  void end_session();
    142139  void need_refresh() { refresh=1; }       // for development mode only
     
    156153  void request_level_load(char *name);
    157154  void request_end();
    158 } ;
     155};
    159156
    160157extern int playing_state(int state);
Note: See TracChangeset for help on using the changeset viewer.