Inheritance diagram for BuildIndustryWindow:

Public Member Functions | |
| BuildIndustryWindow () | |
| virtual void | OnPaint () |
| This window is currently being repainted. | |
| virtual void | OnDoubleClick (Point pt, int widget) |
| A double click with the left mouse button has been made on the window. | |
| virtual void | OnClick (Point pt, int widget) |
| A click with the left mouse button has been made on the window. | |
| virtual void | OnResize (Point new_size, Point delta) |
| Called when the window got resized. | |
| virtual void | OnPlaceObject (Point pt, TileIndex tile) |
| The user clicked some place on the map when a tile highlight mode has been set. | |
| virtual void | OnTick () |
| Called once per (game) tick. | |
| virtual void | OnTimeout () |
| Called when this window's timeout has been reached. | |
| virtual void | OnPlaceObjectAbort () |
| The user cancelled a tile highlight mode that has been set. | |
| virtual void | OnInvalidateData (int data=0) |
| Some data on this window has become invalid. | |
Private Member Functions | |
| void | SetupArrays () |
Private Attributes | |
| int | selected_index |
| index of the element in the matrix | |
| IndustryType | selected_type |
| industry corresponding to the above index | |
| uint16 | callback_timer |
| timer counter for callback eventual verification | |
| bool | timer_enabled |
| timer can be used | |
| uint16 | count |
| How many industries are loaded. | |
| IndustryType | index [NUM_INDUSTRYTYPES+1] |
| Type of industry, in the order it was loaded. | |
| StringID | text [NUM_INDUSTRYTYPES+1] |
| Text coming from CBM_IND_FUND_MORE_TEXT (if ever). | |
| bool | enabled [NUM_INDUSTRYTYPES+1] |
| availability state, coming from CBID_INDUSTRY_AVAILABLE (if ever) | |
Definition at line 98 of file industry_gui.cpp.
| virtual void BuildIndustryWindow::OnClick | ( | Point | pt, | |
| int | widget | |||
| ) | [inline, virtual] |
A click with the left mouse button has been made on the window.
| pt | the point inside the window that has been clicked. | |
| widget | the clicked widget. |
Reimplemented from Window.
Definition at line 295 of file industry_gui.cpp.
References _game_mode, _generating_world, _settings_game, CMD_BUILD_INDUSTRY, CMD_MSG, GameSettings::construction, DoCommandP(), GenerateIndustries(), GetIndustrySpec(), GetNumTowns(), HandlePlacePushButton(), InteractiveRandom(), INVALID_INDUSTRYTYPE, IndustrySpec::IsRawIndustry(), ConstructionSettings::raw_industry_construction, ResetObjectToPlace(), ShowErrorMessage(), VHM_RECT, Point::y, and y.
| virtual void BuildIndustryWindow::OnDoubleClick | ( | Point | pt, | |
| int | widget | |||
| ) | [inline, virtual] |
A double click with the left mouse button has been made on the window.
| pt | the point inside the window that has been clicked. | |
| widget | the clicked widget. |
Reimplemented from Window.
Definition at line 289 of file industry_gui.cpp.
| virtual void BuildIndustryWindow::OnInvalidateData | ( | int | data = 0 |
) | [inline, virtual] |
Some data on this window has become invalid.
| data | information about the changed data. |
Reimplemented from Window.
Definition at line 414 of file industry_gui.cpp.
The user clicked some place on the map when a tile highlight mode has been set.
| pt | the exact point on the map that has been clicked. | |
| tile | the tile on the map that has been clicked. |
Reimplemented from Window.
Definition at line 347 of file industry_gui.cpp.
References _current_player, _error_message, _game_mode, _generating_world, _ignore_restrictions, CMD_BUILD_INDUSTRY, CMD_MSG, DoCommandP(), GetIndustrySpec(), GetNumTowns(), InteractiveRandom(), InteractiveRandomRange(), IndustrySpec::name, IndustrySpec::num_table, OWNER_NONE, ResetObjectToPlace(), SetDParam(), ShowErrorMessage(), Point::x, and Point::y.
Called when the window got resized.
| new_size | the new size of the window. | |
| delta | the amount of which the window size changed. |
Reimplemented from Window.
Definition at line 340 of file industry_gui.cpp.
1.4.7