#include <tiledata.h>
Public Member Functions | |
Tiledata () | |
~Tiledata () | |
string | get_name () |
void | set_name (char *tilename) |
int | get_frames () |
void | set_frames (int num_frames) |
void | set_num_images (int number) |
int | load_image (int img_index, char *filename, int transparent) |
SDL_Surface * | get_image (int index) |
void | set_tile_info (tile_info *ti) |
tile_info * | get_tile_info () |
int | get_width () |
int | get_height () |
Public Attributes | |
SDL_Surface ** | tile |
Private Attributes | |
string | name |
int | frames |
tile_info * | info |
Definition at line 45 of file tiledata.h.
Tiledata::Tiledata | ( | ) |
Definition at line 31 of file tiledata.cpp.
References tile_info::first_max, tile_info::first_min, tile_info::first_prop, tile_info::first_string, frames, info, tile_info::name, tile_info::num_images, tile_info::second_max, tile_info::second_min, tile_info::second_prop, tile_info::second_string, tile_info::third_max, tile_info::third_min, tile_info::third_prop, tile_info::third_string, tile, and TILEDATA_DEBUG.
Tiledata::~Tiledata | ( | ) |
string Tiledata::get_name | ( | ) |
Definition at line 57 of file tiledata.cpp.
References name.
Referenced by FGEntity::set_tiledata(), and BGEntity::set_tiledata().
void Tiledata::set_name | ( | char * | tilename | ) |
Definition at line 61 of file tiledata.cpp.
References name, and TILEDATA_DEBUG.
Referenced by Tiles::set_name().
int Tiledata::get_frames | ( | ) |
void Tiledata::set_frames | ( | int | num_frames | ) |
Definition at line 70 of file tiledata.cpp.
References frames, and TILEDATA_DEBUG.
Referenced by Tiles::set_num_frames().
void Tiledata::set_num_images | ( | int | number | ) |
Definition at line 100 of file tiledata.cpp.
References tile, and TILEDATA_DEBUG.
Referenced by Tiles::set_num_images().
int Tiledata::load_image | ( | int | img_index, | |
char * | filename, | |||
int | transparent | |||
) |
SDL_Surface * Tiledata::get_image | ( | int | index | ) |
Definition at line 92 of file tiledata.cpp.
References tile, and TILEDATA_DEBUG.
Referenced by Tiles::get_frame().
void Tiledata::set_tile_info | ( | tile_info * | ti | ) |
Definition at line 106 of file tiledata.cpp.
References tile_info::first_max, tile_info::first_min, tile_info::first_prop, tile_info::first_string, frames, info, name, tile_info::name, tile_info::num_images, tile_info::second_max, tile_info::second_min, tile_info::second_prop, tile_info::second_string, tile_info::third_max, tile_info::third_min, tile_info::third_prop, and tile_info::third_string.
Referenced by Tiles::load_tileimages().
tile_info * Tiledata::get_tile_info | ( | ) |
int Tiledata::get_width | ( | ) |
Definition at line 127 of file tiledata.cpp.
References tile.
Referenced by BGEntity::set_location().
int Tiledata::get_height | ( | ) |
Definition at line 131 of file tiledata.cpp.
References tile.
Referenced by BGEntity::set_location().
string Tiledata::name [private] |
Definition at line 47 of file tiledata.h.
Referenced by get_name(), set_name(), and set_tile_info().
int Tiledata::frames [private] |
Definition at line 48 of file tiledata.h.
Referenced by get_frames(), set_frames(), set_tile_info(), and Tiledata().
tile_info* Tiledata::info [private] |
Definition at line 49 of file tiledata.h.
Referenced by get_tile_info(), set_tile_info(), Tiledata(), and ~Tiledata().
SDL_Surface** Tiledata::tile |
Definition at line 51 of file tiledata.h.
Referenced by get_height(), get_image(), BGEntity::get_tilesize(), get_width(), load_image(), Player::overlay(), Player::redraw(), FGEntity::set_location(), set_num_images(), Player::static_redraw(), Player::static_redraw_cycle(), FGEntityList::test(), Tiledata(), and ~Tiledata().