コード例 #1
0
    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);
    }
コード例 #2
0
 static inline unsigned long getMapXsize()
 {
     return( (unsigned long) (main_map.getXsize()) );
 }
コード例 #3
0
 static inline void getMapSize(iXY *map_size)
 {
     map_size->x = main_map.getXsize();
     map_size->y = main_map.getYsize();
 }
コード例 #4
0
 static inline iXY getMapSize()
 {
     return( iXY( main_map.getXsize(), main_map.getYsize() ) );
 }
コード例 #5
0
 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();
 }