|
| | level_map ()=default |
| |
| | ~level_map () |
| |
| bool | set_size (int iWidth, int iHeight) |
| |
| bool | load_blank () |
| |
| bool | load_from_th_file (const uint8_t *pData, size_t iDataLength, map_load_object_callback_fn fnObjectCallback, void *pCallbackToken) |
| |
| void | save (const std::string &filename) |
| |
| void | set_block_sheet (sprite_sheet *pSheet) |
| | Set the sprite sheet to be used for drawing the map.
|
| |
| void | set_all_wall_draw_flags (uint8_t iFlags) |
| | Set the draw flags on all wall blocks.
|
| |
| void | update_pathfinding () |
| |
| void | update_shadows () |
| |
| void | set_temperature_display (temperature_theme eTempDisplay) |
| |
| temperature_theme | get_temperature_display () const |
| |
| void | update_temperatures (uint16_t iAirTemperature, uint16_t iRadiatorTemperature) |
| |
| int | get_width () const |
| | Get the map width (in tiles)
|
| |
| int | get_height () const |
| | Get the map height (in tiles)
|
| |
| int | get_parcel_count () const |
| | Get the number of plots of land in this map.
|
| |
| int | get_player_count () const |
| |
| void | set_player_count (int count) |
| |
| bool | get_player_camera_tile (int iPlayer, int *pX, int *pY) const |
| |
| bool | get_player_heliport_tile (int iPlayer, int *pX, int *pY) const |
| |
| void | set_player_camera_tile (int iPlayer, int iX, int iY) |
| |
| void | set_player_heliport_tile (int iPlayer, int iX, int iY) |
| |
| int | get_parcel_tile_count (int iParcelId) const |
| | Get the number of tiles inside a given parcel.
|
| |
| std::vector< std::pair< int, int > > | set_parcel_owner (int iParcelId, int iOwner) |
| | Change the owner of a particular parcel.
|
| |
| int | get_parcel_owner (int iParcelId) const |
| | Get the owner of a particular parcel of land.
|
| |
| bool | are_parcels_adjacent (int iParcel1, int iParcel2) |
| | Query if two parcels are directly connected.
|
| |
| bool | is_parcel_purchasable (int iParcelId, int iPlayer) |
| | Query if a given player is in a position to purchase a given parcel.
|
| |
| void | draw (render_target *pCanvas, int iScreenX, int iScreenY, int iWidth, int iHeight, int iCanvasX, int iCanvasY) const |
| | Draw the map (and any attached animations)
|
| |
| drawable * | hit_test (int iTestX, int iTestY) const |
| | Perform a hit-test against the animations attached to the map.
|
| |
| map_tile * | get_tile (int iX, int iY) |
| |
| const map_tile * | get_tile (int iX, int iY) const |
| |
| const map_tile * | get_original_tile (int iX, int iY) const |
| |
| map_tile * | get_tile_unchecked (int iX, int iY) |
| |
| const map_tile * | get_tile_unchecked (int iX, int iY) const |
| |
| const map_tile * | get_original_tile_unchecked (int iX, int iY) const |
| |
| uint16_t | get_tile_temperature (const map_tile *pNode) const |
| |
| int | get_tile_owner (const map_tile *pNode) const |
| |
| void | persist (lua_persist_writer *pWriter) const |
| |
| void | depersist (lua_persist_reader *pReader) |
| |
| void | set_overlay (map_overlay *pOverlay, bool bTakeOwnership) |
| |
Draw the map (and any attached animations)
Draws the world pixel rectangle (iScreenX, iScreenY, iWidth, iHeight) to the rectangle (iCanvasX, iCanvasY, iWidth, iHeight) on pCanvas. Note that world pixel coordinates are also known as absolute screen coordinates - they are not world (tile) coordinates, nor (relative) screen coordinates.