Freeciv21
Develop your civilization from humble roots to a global empire
small_sprite Struct Reference

Information about an individual sprite. More...

+ Collaboration diagram for small_sprite:

Public Attributes

int ref_count
 
char * file
 
struct specfilesf
 
int x
 
int y
 
int width
 
int height
 
int hot_x
 
int hot_y
 
QPixmap * sprite
 

Detailed Description

Information about an individual sprite.

All fields except 'sprite' are filled at the time of the scan of the specfile. 'Sprite' is set/cleared on demand in load_sprite/unload_sprite.

Definition at line 206 of file tilespec.cpp.

Member Data Documentation

◆ file

char* small_sprite::file

◆ height

int small_sprite::height

Definition at line 214 of file tilespec.cpp.

Referenced by load_sprite(), and scan_specfile().

◆ hot_x

int small_sprite::hot_x

Definition at line 217 of file tilespec.cpp.

Referenced by scan_specfile(), and tileset_lookup_sprite_tags().

◆ hot_y

int small_sprite::hot_y

Definition at line 217 of file tilespec.cpp.

Referenced by scan_specfile(), and tileset_lookup_sprite_tags().

◆ ref_count

int small_sprite::ref_count

Definition at line 207 of file tilespec.cpp.

Referenced by load_sprite(), scan_specfile(), and unload_sprite().

◆ sf

struct specfile* small_sprite::sf

Definition at line 213 of file tilespec.cpp.

Referenced by finish_loading_sprites(), load_sprite(), and scan_specfile().

◆ sprite

QPixmap* small_sprite::sprite

◆ width

int small_sprite::width

Definition at line 214 of file tilespec.cpp.

Referenced by load_sprite(), and scan_specfile().

◆ x

int small_sprite::x

Definition at line 214 of file tilespec.cpp.

Referenced by load_sprite(), and scan_specfile().

◆ y

int small_sprite::y

Definition at line 214 of file tilespec.cpp.

Referenced by load_sprite(), and scan_specfile().