|
OpenTTD
|
GUIs for building trees. More...
#include "stdafx.h"#include "window_gui.h"#include "gfx_func.h"#include "tilehighlight_func.h"#include "company_func.h"#include "company_base.h"#include "command_func.h"#include "sound_func.h"#include "tree_map.h"#include "widgets/tree_widget.h"#include "table/sprites.h"#include "table/strings.h"#include "table/tree_land.h"#include "safeguards.h"Go to the source code of this file.
Data Structures | |
| class | BuildTreesWindow |
| The build trees window. More... | |
Functions | |
| void | PlaceTreesRandomly () |
| Place some trees randomly. | |
| void | ShowBuildTreesToolbar () |
Variables | |
| const PalSpriteID | tree_sprites [] |
| Tree Sprites with their palettes. | |
| static const NWidgetPart | _nested_build_trees_widgets [] |
| static WindowDesc | _build_trees_desc (WDP_AUTO,"build_tree", 0, 0, WC_BUILD_TREES, WC_NONE, WDF_CONSTRUCTION, _nested_build_trees_widgets, lengthof(_nested_build_trees_widgets)) |
GUIs for building trees.
Definition in file tree_gui.cpp.
| void PlaceTreesRandomly | ( | ) |
Place some trees randomly.
This function just place some trees randomly on the map.
Definition at line 246 of file tree_cmd.cpp.
References _settings_game, CanPlantTreesOnTile(), DEFAULT_RAINFOREST_TREE_STEPS, DEFAULT_TREE_STEPS, EDITOR_TREE_DIV, GameSettings::game_creation, GetSnowLine(), GetTileZ(), GetTropicZone(), GWP_TREE, IncreaseGeneratingWorldProgress(), GameCreationSettings::landscape, PlaceTree(), PlaceTreeAtSameHeight(), RandomTileSeed(), ScaleByMapSize(), TP_IMPROVED, GameCreationSettings::tree_placer, and TROPICZONE_RAINFOREST.
Referenced by GenerateTrees(), and BuildTreesWindow::OnClick().
| const PalSpriteID tree_sprites[] |
Tree Sprites with their palettes.
Definition at line 33 of file tree_gui.cpp.
1.8.1.2