![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
Include dependency graph for vision.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | vision |
| struct | vision_site |
Macros | |
| #define | vision_layer_iterate(v) |
| #define | vision_layer_iterate_end |
| #define | V_RADIUS(main_sq, invis_sq, subs_sq) |
| #define | ASSERT_VISION(v) |
| #define | vision_site_owner(v) ((v)->owner) |
Typedefs | |
| typedef short int | v_radius_t[V_COUNT] |
Functions | |
| struct vision * | vision_new (struct player *pplayer, struct tile *ptile) |
| Create a new vision source. More... | |
| void | vision_free (struct vision *vision) |
| Free the vision source. More... | |
| bool | vision_reveal_tiles (struct vision *vision, bool reveal_tiles) |
| Sets the can_reveal_tiles flag. More... | |
| struct vision_site * | vision_site_new (int identity, struct tile *location, struct player *owner) |
| Returns the basic structure. More... | |
| struct vision_site * | vision_site_new_from_city (const struct city *pcity) |
| Returns the basic structure filled with initial elements. More... | |
| void | vision_site_update_from_city (struct vision_site *psite, const struct city *pcity) |
| Returns the basic structure filled with current elements. More... | |
| citizens | vision_site_size_get (const struct vision_site *psite) |
| Get the city size. More... | |
| void | vision_site_size_set (struct vision_site *psite, citizens size) |
| Set the city size. More... | |
| #define ASSERT_VISION | ( | v | ) |
| #define V_RADIUS | ( | main_sq, | |
| invis_sq, | |||
| subs_sq | |||
| ) |
| #define vision_layer_iterate | ( | v | ) |
| void vision_free | ( | struct vision * | vision | ) |
Free the vision source.
Definition at line 44 of file vision.cpp.
Referenced by remove_city(), server_game_free(), server_remove_unit_full(), transfer_city(), unit_change_homecity_handling(), and unit_move().
Create a new vision source.
Definition at line 27 of file vision.cpp.
Referenced by create_city(), create_unit_full(), sg_load_player_cities(), sg_load_player_units(), transfer_city(), unit_change_homecity_handling(), and unit_move_data().
| bool vision_reveal_tiles | ( | struct vision * | vision, |
| bool | reveal_tiles | ||
| ) |
Sets the can_reveal_tiles flag.
Returns the old flag.
Definition at line 56 of file vision.cpp.
Referenced by create_city(), sg_load_player_cities(), and transfer_city().
| struct vision_site* vision_site_new | ( | int | identity, |
| struct tile * | location, | ||
| struct player * | owner | ||
| ) |
Returns the basic structure.
Definition at line 67 of file vision.cpp.
Referenced by sg_load_player_vision(), and vision_site_new_from_city().
| struct vision_site* vision_site_new_from_city | ( | const struct city * | pcity | ) |
Returns the basic structure filled with initial elements.
Definition at line 82 of file vision.cpp.
Referenced by update_dumb_city().
| citizens vision_site_size_get | ( | const struct vision_site * | psite | ) |
Get the city size.
Definition at line 112 of file vision.cpp.
Referenced by package_dumb_city(), sg_save_player_vision(), and update_dumb_city().
| void vision_site_size_set | ( | struct vision_site * | psite, |
| citizens | size | ||
| ) |
Set the city size.
Definition at line 122 of file vision.cpp.
Referenced by sg_load_player_vision_city(), vision_site_new_from_city(), and vision_site_update_from_city().
| void vision_site_update_from_city | ( | struct vision_site * | psite, |
| const struct city * | pcity | ||
| ) |
Returns the basic structure filled with current elements.
Definition at line 96 of file vision.cpp.
Referenced by update_dumb_city().