#include <bgdraw.h>
Public Member Functions | |
BGDraw () | |
~BGDraw () | |
void | set_display (Screen &s) |
void | set_background (BGEntity *bge) |
void | set_paul_info (paul_info *p) |
void | set_size (int wwidth, int wheight, int mwidth, int mheight, int tsize, int startx, int starty) |
void | set_char_position (int charx, int chary) |
void | update_screen () |
void | initialize () |
void | refresh_all () |
void | move (int dir) |
Private Attributes | |
BGEntity * | bgentity |
Screen | screen |
paul_info * | pinfo |
int | tilesize |
int | tile_start_x |
int | tile_stop_x |
int | tile_start_y |
int | tile_stop_y |
int | map_offset_x |
int | map_offset_y |
Definition at line 47 of file bgdraw.h.
BGDraw::BGDraw | ( | ) |
BGDraw::~BGDraw | ( | ) |
Definition at line 38 of file bgdraw.cpp.
void BGDraw::set_display | ( | Screen & | s | ) |
Definition at line 41 of file bgdraw.cpp.
References BGDRAW_DEBUG, and screen.
Referenced by main().
void BGDraw::set_background | ( | BGEntity * | bge | ) |
void BGDraw::set_paul_info | ( | paul_info * | p | ) |
void BGDraw::set_size | ( | int | wwidth, | |
int | wheight, | |||
int | mwidth, | |||
int | mheight, | |||
int | tsize, | |||
int | startx, | |||
int | starty | |||
) |
Definition at line 54 of file bgdraw.cpp.
References BGDRAW_DEBUG, paul_info::center_x, paul_info::center_y, paul_info::map_height, paul_info::map_height_in_tiles, paul_info::map_width, paul_info::map_width_in_tiles, paul_info::paul_ax, paul_info::paul_ay, paul_info::paul_center_ax, paul_info::paul_center_ay, pinfo, paul_info::tilesize, tilesize, paul_info::win_height, paul_info::win_height_in_tiles, paul_info::win_width, and paul_info::win_width_in_tiles.
Referenced by main().
void BGDraw::set_char_position | ( | int | charx, | |
int | chary | |||
) |
Definition at line 80 of file bgdraw.cpp.
References paul_info::paul_ax, paul_info::paul_ay, pinfo, and tilesize.
void BGDraw::update_screen | ( | ) |
Definition at line 206 of file bgdraw.cpp.
void BGDraw::initialize | ( | ) |
Definition at line 85 of file bgdraw.cpp.
References BGDRAW_DEBUG, bgentity, Screen::blank(), Screen::blit(), paul_info::center_x, paul_info::center_y, Screen::get_height(), Screen::get_width(), makerect(), paul_info::map_height, map_offset_x, map_offset_y, paul_info::map_width, paul_info::map_width_in_tiles, paul_info::paul_ax, paul_info::paul_ay, paul_info::paul_center_ax, paul_info::paul_center_ay, paul_info::paul_x, paul_info::paul_y, pinfo, screen, paul_info::tile_ax_in_win, paul_info::tile_ay_in_win, paul_info::tile_start_x, tile_start_x, paul_info::tile_start_y, tile_start_y, paul_info::tile_stop_x, tile_stop_x, paul_info::tile_stop_y, tile_stop_y, tilesize, paul_info::win_height, and paul_info::win_width.
Referenced by main(), move(), and FGEntityList::test().
void BGDraw::refresh_all | ( | ) |
Definition at line 211 of file bgdraw.cpp.
void BGDraw::move | ( | int | dir | ) |
Definition at line 178 of file bgdraw.cpp.
References initialize(), paul_info::paul_ax, paul_info::paul_ay, and pinfo.
BGEntity* BGDraw::bgentity [private] |
Screen BGDraw::screen [private] |
paul_info* BGDraw::pinfo [private] |
Definition at line 51 of file bgdraw.h.
Referenced by initialize(), move(), set_char_position(), set_paul_info(), and set_size().
int BGDraw::tilesize [private] |
Definition at line 52 of file bgdraw.h.
Referenced by BGDraw(), initialize(), set_char_position(), and set_size().
int BGDraw::tile_start_x [private] |
int BGDraw::tile_stop_x [private] |
int BGDraw::tile_start_y [private] |
int BGDraw::tile_stop_y [private] |
int BGDraw::map_offset_x [private] |
int BGDraw::map_offset_y [private] |