![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <layer_editor.h>
Inheritance diagram for freeciv::layer_editor:
Collaboration diagram for freeciv::layer_editor:Public Member Functions | |
| layer_editor (struct tileset *ts) | |
| virtual | ~layer_editor ()=default |
| void | load_sprites () override |
| Loads all sprites that do not depend on the ruleset. More... | |
| std::vector< drawn_sprite > | fill_sprite_array (const tile *ptile, const tile_edge *pedge, const tile_corner *pcorner, const unit *punit) const override |
| Returns the list of sprites drawn by this layer somewhere on the map. More... | |
Public Member Functions inherited from freeciv::layer | |
| layer (struct tileset *ts, mapview_layer layer) | |
| Constructor. More... | |
| virtual | ~layer ()=default |
| Destructor. More... | |
| virtual void | initialize_player (const player *player) |
| Initializes data specific to one player. More... | |
| virtual void | free_player (int player_id) |
| Frees data initialized by initialize_player. More... | |
| virtual void | initialize_city_style (const citystyle &style, int index) |
| Initializes data for a city style. More... | |
| virtual void | initialize_extra (const extra_type *extra, const QString &tag, extrastyle_id style) |
| Initializes extra-specific data. More... | |
| virtual void | initialize_terrain (const terrain *terrain) |
| Initializes terrain-specific data. More... | |
| virtual void | reset_ruleset () |
| Resets cached data that depends on the ruleset. More... | |
| mapview_layer | type () const |
Private Attributes | |
| QPixmap | m_selected |
| QPixmap * | m_starting_position |
Additional Inherited Members | |
Protected Member Functions inherited from freeciv::layer | |
| struct tileset * | tileset () const |
| bool | do_draw_unit (const tile *ptile, const unit *punit) const |
| Whether a unit should be drawn. More... | |
| bool | solid_background (const tile *ptile, const unit *punit, const city *pcity) const |
| Whether a solid background should be drawn on a tile instead of its terrain. More... | |
| QPixmap * | load_sprite (const QStringList &possible_names, bool required=false, bool verbose=true) const |
| Shortcut to load a sprite from the tileset. More... | |
Definition at line 14 of file layer_editor.h.
|
explicit |
Definition at line 17 of file layer_editor.cpp.
|
virtualdefault |
|
overridevirtual |
Returns the list of sprites drawn by this layer somewhere on the map.
Only one of ptile, pedge, or pcorner should be non-null.
Reimplemented from freeciv::layer.
Definition at line 40 of file layer_editor.cpp.
|
overridevirtual |
Loads all sprites that do not depend on the ruleset.
Reimplemented from freeciv::layer.
Definition at line 22 of file layer_editor.cpp.
|
private |
Definition at line 27 of file layer_editor.h.
Referenced by fill_sprite_array(), and load_sprites().
|
private |
Definition at line 27 of file layer_editor.h.
Referenced by fill_sprite_array(), and load_sprites().