static void offsetToPointXY( unsigned long offset, unsigned long *point_x, unsigned long *point_y ) { *point_y = ( offset / main_map.getXsize() ); *point_x = ( offset - ( (*point_y) * main_map.getXsize() ) ) * 32 + (32 / 2); *point_y = (*point_y) * 32 + (32 / 2); }
static inline unsigned long getMapXsize() { return( (unsigned long) (main_map.getXsize()) ); }
static inline void getMapSize(iXY *map_size) { map_size->x = main_map.getXsize(); map_size->y = main_map.getYsize(); }
static inline iXY getMapSize() { return( iXY( main_map.getXsize(), main_map.getYsize() ) ); }
static inline void getMapPointSize(iXY *map_size) { map_size->x = main_map.getXsize() * tile_set.getTileXsize(); map_size->y = main_map.getYsize() * tile_set.getTileYsize(); }